MCPcopy
hub / github.com/yume-chan/ya-webadb / readExactly

Method readExactly

libraries/struct/src/readable.ts:20–20  ·  view source on GitHub ↗

* Read data from the underlying data source. * * The stream must return exactly `length` bytes or data. If that's not possible * (due to end of file or other error condition), it must throw an ExactReadableEndedError.

(length: number)

Source from the content-addressed store, hash-verified

18 * (due to end of file or other error condition), it must throw an {@link ExactReadableEndedError}.
19 */
20 readExactly(length: number): Uint8Array;
21}
22
23export class Uint8ArrayExactReadable implements ExactReadable {

Callers 15

bufferFunction · 0.65
number.tsFile · 0.65
#parseDeviceMessagesMethod · 0.65
#connectAndRetryMethod · 0.65
parseAudioStreamMetadataFunction · 0.65
readStringFunction · 0.65
readU16Function · 0.65
readU32Function · 0.65
inject-touch.tsFile · 0.65
runTestFunction · 0.65

Implementers 3

Uint8ArrayExactReadablelibraries/struct/src/readable.ts
AdbSyncSocketLockedlibraries/adb/src/commands/sync/socket
AdbServerStreamlibraries/adb/src/server/stream.ts

Calls

no outgoing calls

Tested by 1

runTestFunction · 0.52