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

Method latin1Write

javascript/packages/core/lib/platformBuffer.ts:73–78  ·  view source on GitHub ↗
(string: string, offset: number)

Source from the content-addressed store, hash-verified

71 }
72
73 private latin1Write(string: string, offset: number) {
74 let index = 0;
75 for (; index < string.length; index++) {
76 this[offset++] = string.charCodeAt(index);
77 }
78 }
79
80 private utf8Write(string: string, offset: number) {
81 utf8Encoder.encodeInto(string, this.subarray(offset));

Callers 1

writeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected