MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / serialize

Method serialize

packages/repository/src/types/buffer.ts:48–52  ·  view source on GitHub ↗
(value: Buffer | null | undefined, options?: Options)

Source from the content-addressed store, hash-verified

46 }
47
48 serialize(value: Buffer | null | undefined, options?: Options) {
49 if (value == null) return value;
50 const encoding = options?.encoding || 'base64';
51 return value.toString(encoding);
52 }
53}

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected