Interface Writer
Implemented by
Index
Methods
Methods
write
- write(p): Promise<number>
Writes
p.byteLengthbytes frompto the underlying data stream. It resolves to the number of bytes written fromp(0<=n<=p.byteLength) or reject with the error encountered that caused the write to stop early.write()must reject with a non-null error if would resolve ton<p.byteLength.write()must not modify the slice data, even temporarily.Implementations should not retain a reference to
p.Parameters
- p: Uint8Array
Returns Promise<number>
An abstract interface which when implemented provides an interface to write bytes from an array buffer to a file/resource asynchronously.