DefinitelyTyped

Index

Variables

Dynamic modules

Modules

Interfaces

Functions

Variables

Buffer: Buffer

deprecated

(index: number): number

Parameters

  • index: number

Returns

number

public length: number

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

SlowBuffer: { prototype: Buffer; isBuffer(obj: any): boolean; byteLength(string: string, encoding?: string): number; concat(list: Buffer[], totalLength?: number): Buffer; new(str: string, encoding?: string): Buffer; new(size: number): Buffer; new(array: any[]): Buffer; }

constructor(): Buffer

Returns

Buffer

constructor(): Buffer

Returns

Buffer

constructor(): Buffer

Returns

Buffer

public SlowBuffer.prototype: Buffer

public byteLength(): number

Returns

number

optional .encoding.encoding?: string

.string.string: string

public concat(): Buffer

Returns

Buffer

.list.list: Buffer[]

optional .totalLength.totalLength?: number

public isBuffer(): boolean

Returns

boolean

.obj.obj: any

__dirname: string

__filename: string

exports: any

global: any

highland: HighlandStatic

module: { exports: any; require(id: string): any; id: string; filename: string; loaded: boolean; parent: any; children: any[]; }

public module.children: Array<any>

public module.exports: any

public module.filename: string

public module.id: string

public module.loaded: boolean

public module.parent: any

public require(): any

Returns

any

.id.id: string

process: Process

                                          *
              GLOBAL                      *
                                          *

require: { resolve(id: string): string; cache: any; extensions: any; main: any; (id: string): any; }

(): any

Returns

any

public require.cache: any

public require.extensions: any

public require.main: any

public resolve(): string

Returns

string

.id.id: string

Functions

clearImmediate(immediateId: any)

Parameters

  • immediateId: any

clearInterval(intervalId: Timer)

Parameters

clearTimeout(timeoutId: Timer)

Parameters

setImmediate(callback: (...args: any[]) => void, args?: Array<any>): any

Parameters

  • callback: (...args: any[]) => void
  • args?: Array<any> optional

Returns

any

setInterval(callback: (...args: any[]) => void, ms: number, args?: Array<any>): Timer

Parameters

  • callback: (...args: any[]) => void
  • ms: number
  • args?: Array<any> optional

Returns

Timer

setTimeout(callback: (...args: any[]) => void, ms: number, args?: Array<any>): Timer

Parameters

  • callback: (...args: any[]) => void
  • ms: number
  • args?: Array<any> optional

Returns

Timer