Construct signatures

SM new(str: string, encoding: string) Buffer

Parameters:
Name Type Argument
str string
encoding string <optional>
Returns: { Buffer }

SM new(size: number) Buffer

Parameters:
Name Type
size number
Returns: { Buffer }

SM new(size: Uint8Array) Buffer

Parameters:
Name Type
size Uint8Array
Returns: { Buffer }

SM new(array: any[]) Buffer

Parameters:
Name Type
array Array.<any>
Returns: { Buffer }

Methods

SM byteLength(string: string, encoding: string) number

Parameters:
Name Type Argument
string string
encoding string <optional>
Returns: { number }

SM concat(list: Buffer[], totalLength: number) Buffer

Parameters:
Name Type Argument
list Array.<Buffer>
totalLength number <optional>
Returns: { Buffer }

SM isBuffer(obj: any) boolean

Parameters:
Name Type
obj any
Returns: { boolean }
Properties:
Name Type
prototype Buffer