actually add the new public methods to the interfaces
This commit is contained in:
parent
c1e43e2937
commit
b7a482d1f2
3 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bufferstuff",
|
||||
"version": "1.4.1",
|
||||
"version": "1.4.2",
|
||||
"description": "A set of utility classes for reading and writing binary data in NodeJS and the browser",
|
||||
"main": "./lib/index.js",
|
||||
"types": "./lib/index.d.ts",
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
// Check LICENSE in repository root for more information.
|
||||
|
||||
export interface IReader {
|
||||
readOffset: number,
|
||||
length: number,
|
||||
readBuffer(bytes:number): Buffer,
|
||||
readUint8Array(bytes:number): Uint8Array,
|
||||
readByte(): number,
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
// Check LICENSE in repository root for more information.
|
||||
|
||||
export interface IWriter {
|
||||
writeOffset: number,
|
||||
length: number,
|
||||
toBuffer(): Buffer,
|
||||
toString(): string,
|
||||
writeBuffer(buffer:Buffer): IWriter,
|
||||
|
|
Loading…
Reference in a new issue