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",
|
"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",
|
"description": "A set of utility classes for reading and writing binary data in NodeJS and the browser",
|
||||||
"main": "./lib/index.js",
|
"main": "./lib/index.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
// Check LICENSE in repository root for more information.
|
// Check LICENSE in repository root for more information.
|
||||||
|
|
||||||
export interface IReader {
|
export interface IReader {
|
||||||
|
readOffset: number,
|
||||||
|
length: number,
|
||||||
readBuffer(bytes:number): Buffer,
|
readBuffer(bytes:number): Buffer,
|
||||||
readUint8Array(bytes:number): Uint8Array,
|
readUint8Array(bytes:number): Uint8Array,
|
||||||
readByte(): number,
|
readByte(): number,
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
// Check LICENSE in repository root for more information.
|
// Check LICENSE in repository root for more information.
|
||||||
|
|
||||||
export interface IWriter {
|
export interface IWriter {
|
||||||
|
writeOffset: number,
|
||||||
|
length: number,
|
||||||
toBuffer(): Buffer,
|
toBuffer(): Buffer,
|
||||||
toString(): string,
|
toString(): string,
|
||||||
writeBuffer(buffer:Buffer): IWriter,
|
writeBuffer(buffer:Buffer): IWriter,
|
||||||
|
|
Loading…
Reference in a new issue