Search
Preparing search index...
The search index is not available
fs-pro
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"types"
BufferClass
Interface BufferClass
Hierarchy
(
length
:
number
)
=>
BufferType
BufferClass
Callable
__call
(
length
:
number
)
:
BufferType
Parameters
length:
number
Returns
BufferType
Index
Properties
constants
pool
Size
Methods
alloc
alloc
Unsafe
alloc
Unsafe
Slow
byte
Length
compare
concat
from
is
Buffer
is
Encoding
Properties
constants
constants
:
{
MAX_LENGTH
:
number
;
MAX_STRING_LENGTH
:
number
}
Type declaration
MAX_
LENGTH
:
number
MAX_
STRING_
LENGTH
:
number
pool
Size
pool
Size
:
number
Methods
alloc
alloc
(
size
:
number
, fill
?:
ArrayBuffer
|
Uint8Array
|
number
)
:
BufferType
alloc
(
size
:
number
, fill
:
string
, encoding
?:
undefined
|
string
)
:
BufferType
Parameters
size:
number
Optional
fill:
ArrayBuffer
|
Uint8Array
|
number
Returns
BufferType
Parameters
size:
number
fill:
string
Optional
encoding:
undefined
|
string
Returns
BufferType
alloc
Unsafe
alloc
Unsafe
(
size
:
number
)
:
BufferType
Parameters
size:
number
Returns
BufferType
alloc
Unsafe
Slow
alloc
Unsafe
Slow
(
size
:
number
)
:
BufferType
Parameters
size:
number
Returns
BufferType
byte
Length
byte
Length
(
thing
:
string
|
BufferType
|
TypedArray
|
DataView
|
ArrayBuffer
|
SharedArrayBuffer
, encoding
?:
undefined
|
string
)
:
number
Parameters
thing:
string
|
BufferType
|
TypedArray
|
DataView
|
ArrayBuffer
|
SharedArrayBuffer
Optional
encoding:
undefined
|
string
Returns
number
compare
compare
(
buf1
:
BufferType
, buf2
:
BufferType
)
:
-1
|
0
|
1
Parameters
buf1:
BufferType
buf2:
BufferType
Returns
-1
|
0
|
1
concat
concat
(
buffers
:
BufferType
[]
|
Uint8Array
[]
, totalLen
:
number
)
:
BufferType
Parameters
buffers:
BufferType
[]
|
Uint8Array
[]
totalLen:
number
Returns
BufferType
from
from
(
string
:
string
, encoding
?:
undefined
|
string
)
:
BufferType
from
(
arrayBuffer
:
ArrayBuffer
, byteOffset
?:
undefined
|
number
, length
?:
undefined
|
number
)
:
BufferType
from
(
array
:
number
[]
)
:
BufferType
from
(
buffer
:
BufferType
)
:
BufferType
Parameters
string:
string
Optional
encoding:
undefined
|
string
Returns
BufferType
Parameters
arrayBuffer:
ArrayBuffer
Optional
byteOffset:
undefined
|
number
Optional
length:
undefined
|
number
Returns
BufferType
Parameters
array:
number
[]
Returns
BufferType
Parameters
buffer:
BufferType
Returns
BufferType
is
Buffer
is
Buffer
(
buff
:
any
)
:
buff
is
BufferType
Parameters
buff:
any
Returns
buff
is
BufferType
is
Encoding
is
Encoding
(
)
:
boolean
Returns
boolean
Globals
"
Shape"
"buffer"
"dir"
"file"
"fs"
"fs
Pro
Err"
"path"
"plugin
Adder"
"types"
Buffer
Class
constants
pool
Size
alloc
alloc
Unsafe
alloc
Unsafe
Slow
byte
Length
compare
concat
from
is
Buffer
is
Encoding
Buffer
Type
Plugin
Stats
Base
validate
Options
Buffer
Constructor
Dir
Foreach
Options
FSWatcher
Plugin
Data
Stats
Typed
Array
Watch
Listener
fs
Obj
Type
obj
obj
Any
path
Obj
Type
value
Type
Generated using
TypeDoc