Add missing method to the frida-gum OutputStream typing (#40130)

And fix a typo while at it.
This commit is contained in:
Ole André Vadla Ravnås
2019-11-05 14:01:39 -08:00
committed by Nathan Shively-Sanders
parent 4163730242
commit a72b73a9d4
+8 -1
View File
@@ -1884,7 +1884,7 @@ declare abstract class OutputStream {
close(): Promise<void>;
/**
* Tries to write `data` to the stream. Returns how how many bytes of `data` were written to the stream.
* Tries to write `data` to the stream. Returns how many bytes of `data` were written to the stream.
*/
write(data: ArrayBuffer | number[]): Promise<number>;
@@ -1894,6 +1894,13 @@ declare abstract class OutputStream {
* before the error occurred.
*/
writeAll(data: ArrayBuffer | number[]): Promise<void>;
/**
* Tries to write `size` bytes to the stream, reading them from `address`. Returns how many bytes were written
* to the stream. Premature error or end of stream results in an `Error` object with a `partialSize` property
* specifying how many bytes of `data` were written to the stream before the error occurred.
*/
writeMemoryRegion(address: NativePointerValue, size: number): Promise<number>;
}
/**