MCPcopy Create free account
hub / github.com/apache/fory / read1

Function read1

javascript/packages/core/lib/reader/string.ts:22–24  ·  view source on GitHub ↗
(buffer: Uint8Array, cursor: number)

Source from the content-addressed store, hash-verified

20import { PlatformBuffer } from "../platformBuffer";
21
22const read1 = (buffer: Uint8Array, cursor: number) => {
23 return String.fromCharCode(buffer[cursor]);
24};
25const read2 = (buffer: Uint8Array, cursor: number) => {
26 return String.fromCharCode(buffer[cursor], buffer[cursor + 1]);
27};

Callers 1

readLatin1StringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected