Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BufferClass

Hierarchy

Callable

Index

Properties

constants

constants: { MAX_LENGTH: number; MAX_STRING_LENGTH: number }

Type declaration

  • MAX_LENGTH: number
  • MAX_STRING_LENGTH: number

poolSize

poolSize: number

Methods

alloc

  • alloc(size: number, fill?: ArrayBuffer | Uint8Array | number): BufferType
  • alloc(size: number, fill: string, encoding?: undefined | string): BufferType

allocUnsafe

allocUnsafeSlow

byteLength

  • byteLength(thing: string | BufferType | TypedArray | DataView | ArrayBuffer | SharedArrayBuffer, encoding?: undefined | string): number

compare

concat

from

isBuffer

  • isBuffer(buff: any): buff is BufferType

isEncoding

  • isEncoding(): boolean

Generated using TypeDoc