Interface NodeBuffer

deprecated

Hierarchy

Index

Index signatures

Properties

Methods

Index signatures

(index: number): number

Parameters

  • index: number

Returns

number

Properties

public length: number

Methods

public copy(targetBuffer: Buffer, targetStart?: number, sourceStart?: number, sourceEnd?: number): number

Parameters

  • targetBuffer: Buffer
  • targetStart?: number optional
  • sourceStart?: number optional
  • sourceEnd?: number optional

Returns

number

public fill(value: any, offset?: number, end?: number)

Parameters

  • value: any
  • offset?: number optional
  • end?: number optional

public readDoubleBE(offset: number, noAssert?: boolean): number

Parameters

  • offset: number
  • noAssert?: boolean optional

Returns

number

public readDoubleLE(offset: number, noAssert?: boolean): number

Parameters

  • offset: number
  • noAssert?: boolean optional

Returns

number

public readFloatBE(offset: number, noAssert?: boolean): number

Parameters

  • offset: number
  • noAssert?: boolean optional

Returns

number

public readFloatLE(offset: number, noAssert?: boolean): number

Parameters

  • offset: number
  • noAssert?: boolean optional

Returns

number

public readInt16BE(offset: number, noAssert?: boolean): number

Parameters

  • offset: number
  • noAssert?: boolean optional

Returns

number

public readInt16LE(offset: number, noAssert?: boolean): number

Parameters

  • offset: number
  • noAssert?: boolean optional

Returns

number

public readInt32BE(offset: number, noAssert?: boolean): number

Parameters

  • offset: number
  • noAssert?: boolean optional

Returns

number

public readInt32LE(offset: number, noAssert?: boolean): number

Parameters

  • offset: number
  • noAssert?: boolean optional

Returns

number

public readInt8(offset: number, noAssert?: boolean): number

Parameters

  • offset: number
  • noAssert?: boolean optional

Returns

number

public readUInt16BE(offset: number, noAssert?: boolean): number

Parameters

  • offset: number
  • noAssert?: boolean optional

Returns

number

public readUInt16LE(offset: number, noAssert?: boolean): number

Parameters

  • offset: number
  • noAssert?: boolean optional

Returns

number

public readUInt32BE(offset: number, noAssert?: boolean): number

Parameters

  • offset: number
  • noAssert?: boolean optional

Returns

number

public readUInt32LE(offset: number, noAssert?: boolean): number

Parameters

  • offset: number
  • noAssert?: boolean optional

Returns

number

public readUInt8(offset: number, noAsset?: boolean): number

Parameters

  • offset: number
  • noAsset?: boolean optional

Returns

number

public slice(start?: number, end?: number): Buffer

Parameters

  • start?: number optional
  • end?: number optional

Returns

Buffer

public toJSON(): any

Returns

any

public toString(encoding?: string, start?: number, end?: number): string

Parameters

  • encoding?: string optional
  • start?: number optional
  • end?: number optional

Returns

string

public write(string: string, offset?: number, length?: number, encoding?: string): number

Parameters

  • string: string
  • offset?: number optional
  • length?: number optional
  • encoding?: string optional

Returns

number

public writeDoubleBE(value: number, offset: number, noAssert?: boolean)

Parameters

  • value: number
  • offset: number
  • noAssert?: boolean optional

public writeDoubleLE(value: number, offset: number, noAssert?: boolean)

Parameters

  • value: number
  • offset: number
  • noAssert?: boolean optional

public writeFloatBE(value: number, offset: number, noAssert?: boolean)

Parameters

  • value: number
  • offset: number
  • noAssert?: boolean optional

public writeFloatLE(value: number, offset: number, noAssert?: boolean)

Parameters

  • value: number
  • offset: number
  • noAssert?: boolean optional

public writeInt16BE(value: number, offset: number, noAssert?: boolean)

Parameters

  • value: number
  • offset: number
  • noAssert?: boolean optional

public writeInt16LE(value: number, offset: number, noAssert?: boolean)

Parameters

  • value: number
  • offset: number
  • noAssert?: boolean optional

public writeInt32BE(value: number, offset: number, noAssert?: boolean)

Parameters

  • value: number
  • offset: number
  • noAssert?: boolean optional

public writeInt32LE(value: number, offset: number, noAssert?: boolean)

Parameters

  • value: number
  • offset: number
  • noAssert?: boolean optional

public writeInt8(value: number, offset: number, noAssert?: boolean)

Parameters

  • value: number
  • offset: number
  • noAssert?: boolean optional

public writeUInt16BE(value: number, offset: number, noAssert?: boolean)

Parameters

  • value: number
  • offset: number
  • noAssert?: boolean optional

public writeUInt16LE(value: number, offset: number, noAssert?: boolean)

Parameters

  • value: number
  • offset: number
  • noAssert?: boolean optional

public writeUInt32BE(value: number, offset: number, noAssert?: boolean)

Parameters

  • value: number
  • offset: number
  • noAssert?: boolean optional

public writeUInt32LE(value: number, offset: number, noAssert?: boolean)

Parameters

  • value: number
  • offset: number
  • noAssert?: boolean optional

public writeUInt8(value: number, offset: number, noAssert?: boolean)

Parameters

  • value: number
  • offset: number
  • noAssert?: boolean optional