Construct signatures
SM new(str: string, encoding: string) Buffer
Parameters:
Name |
Type |
Argument |
str |
string
|
|
encoding |
string
|
<optional>
|
Returns:
{
Buffer
}
Parameters:
Returns:
{
Buffer
}
SM new(size: Uint8Array) Buffer
Parameters:
Name |
Type |
size |
Uint8Array
|
Returns:
{
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
}
Parameters:
Name |
Type |
Argument |
list |
Array.<Buffer>
|
|
totalLength |
number
|
<optional>
|
Returns:
{
Buffer
}
SM isBuffer(obj: any) boolean
Parameters:
Returns:
{
boolean
}
- Properties:
-