Interface Buffer

Hierarchy

Index

Properties

Methods

Properties

public bubbleParent: boolean

public byteOrder: number

public length: number

public type: string

public value: any

Methods

public addEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public append(sourceBuffer: Buffer, sourceOffset?: number, sourceLength?: number): number

Parameters

  • sourceBuffer: Buffer
  • sourceOffset?: number optional
  • sourceLength?: number optional

Returns

number

public applyProperties(props: Dictionary)

Parameters

public clear()

public clone(offset?: number, length?: number): Buffer

Parameters

  • offset?: number optional
  • length?: number optional

Returns

Buffer

public copy(sourceBuffer: Buffer, offset: number, sourceOffset?: number, sourceLength?: number): number

Parameters

  • sourceBuffer: Buffer
  • offset: number
  • sourceOffset?: number optional
  • sourceLength?: number optional

Returns

number

public fill(fillByte: number, offset?: number, length?: number)

Parameters

  • fillByte: number
  • offset?: number optional
  • length?: number optional

public fireEvent(name: string, event: Dictionary)

Parameters

public getBubbleParent(): boolean

Returns

boolean

public getByteOrder(): number

Returns

number

public getLength(): number

Returns

number

public getType(): string

Returns

string

public getValue(): any

Returns

any

public insert(sourceBuffer: Buffer, offset: number, sourceOffset?: number, sourceLength?: number): number

Parameters

  • sourceBuffer: Buffer
  • offset: number
  • sourceOffset?: number optional
  • sourceLength?: number optional

Returns

number

public release()

public removeEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean

public setLength(length: number)

Parameters

  • length: number

public toBlob(): Blob

Returns

Blob

public toString(): string

Returns

string