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

Method utf16LESlice

javascript/packages/core/lib/platformBuffer.ts:95–100  ·  view source on GitHub ↗
(start: number, end: number)

Source from the content-addressed store, hash-verified

93 }
94
95 private utf16LESlice(start: number, end: number) {
96 if (end - start < 1) {
97 return "";
98 }
99 return utf16LEDecoder.decode(this.subarray(start, end));
100 }
101
102 private utf8Slice(start: number, end: number) {
103 if (end - start < 1) {

Callers 1

toStringMethod · 0.95

Calls 2

decodeMethod · 0.65
subarrayMethod · 0.45

Tested by

no test coverage detected