// 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