@azure/cosmos
Version:
Microsoft Azure Cosmos DB Service Node.js SDK for NOSQL API
12 lines • 391 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
export class StringSerializer {
static characterEncoding = "utf-8";
deserialize(bytes) {
return bytes.toString(StringSerializer.characterEncoding);
}
serialize(value) {
return Buffer.from(value, StringSerializer.characterEncoding);
}
}
//# sourceMappingURL=StringSerializer.js.map