"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringSerializer = void 0;
class StringSerializer {
    static characterEncoding = "utf-8";
    deserialize(bytes) {
        return bytes.toString(StringSerializer.characterEncoding);
    }
    serialize(value) {
        return Buffer.from(value, StringSerializer.characterEncoding);
    }
}
exports.StringSerializer = StringSerializer;
//# sourceMappingURL=StringSerializer.js.map