MCPcopy Create free account
hub / github.com/cloudflare/workerd / StringDecoder

Interface StringDecoder

src/node/internal/internal_stringdecoder.ts:61–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59const kNativeDecoder = Symbol('kNativeDecoder');
60
61export interface StringDecoder {
62 encoding: string;
63 readonly lastChar: Uint8Array;
64 readonly lastNeed: number;
65 readonly lastTotal: number;
66 new (encoding?: string): StringDecoder;
67 write(buf: ArrayBufferView | DataView | string): string;
68 end(buf?: ArrayBufferView | DataView | string): string;
69 text(buf: ArrayBufferView | DataView | string, offset?: number): string;
70 new (encoding?: string): StringDecoder;
71}
72
73interface InternalDecoder extends StringDecoder {
74 [kNativeDecoder]: Buffer;

Callers 23

test_Function · 0.95
testFunction · 0.95
testBufFunction · 0.95
testEndFunction · 0.95
runSingleFuzzTestFunction · 0.95
endFunction · 0.65
textFunction · 0.65
test_Function · 0.95
testFunction · 0.95
testBufFunction · 0.95
testEndFunction · 0.95
runSingleFuzzTestFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected