Preparing search index...
The search index is not available
txiki.js
txiki.js
tjs:ffi
AdvancedType
Class AdvancedType<T, ST>
Type Parameters
T
ST
extends
SimpleType
<
T
>
Hierarchy
AdvancedType
PointerType
StructType
ArrayType
StaticStringType
Implements
SimpleType
<
T
>
Index
Constructors
constructor
Properties
ffi
Type
ffi
Type
Struct
name
size
Methods
from
Buffer
to
Buffer
Constructors
constructor
new
Advanced
Type
<
T
,
ST
>
(
type
:
ST
, conf
:
{
fromBuffer
?:
(
(
buf
:
Uint8Array
, ctx
?:
{}
)
=>
T
)
;
getFfiTypeStruct
?:
(
(
)
=>
SimpleType
<
T
>
)
;
toBuffer
?:
(
(
data
:
T
, ctx
?:
{}
)
=>
Uint8Array
)
;
}
)
:
AdvancedType
<
T
,
ST
>
Type Parameters
T
ST
extends
SimpleType
<
T
,
ST
>
Parameters
type:
ST
conf:
{
fromBuffer
?:
(
(
buf
:
Uint8Array
, ctx
?:
{}
)
=>
T
)
;
getFfiTypeStruct
?:
(
(
)
=>
SimpleType
<
T
>
)
;
toBuffer
?:
(
(
data
:
T
, ctx
?:
{}
)
=>
Uint8Array
)
;
}
Optional
from
Buffer
?:
(
(
buf
:
Uint8Array
, ctx
?:
{}
)
=>
T
)
(
buf
:
Uint8Array
, ctx
?:
{}
)
:
T
Parameters
buf:
Uint8Array
Optional
ctx:
{}
Returns
T
Optional
get
Ffi
Type
Struct
?:
(
(
)
=>
SimpleType
<
T
>
)
(
)
:
SimpleType
<
T
>
Returns
SimpleType
<
T
>
Optional
to
Buffer
?:
(
(
data
:
T
, ctx
?:
{}
)
=>
Uint8Array
)
(
data
:
T
, ctx
?:
{}
)
:
Uint8Array
Parameters
data:
T
Optional
ctx:
{}
Returns
Uint8Array
Returns
AdvancedType
<
T
,
ST
>
Properties
Readonly
ffi
Type
ffi
Type
:
ST
Readonly
ffi
Type
Struct
ffi
Type
Struct
:
SimpleType
<
T
>
Readonly
name
name
:
string
Readonly
size
size
:
number
Methods
from
Buffer
from
Buffer
(
buffer
:
Uint8Array
, ctx
?:
{}
)
:
T
Parameters
buffer:
Uint8Array
Optional
ctx:
{}
Returns
T
to
Buffer
to
Buffer
(
data
:
T
, ctx
?:
{}
)
:
Uint8Array
Parameters
data:
T
Optional
ctx:
{}
Returns
Uint8Array
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
txiki.js
global
tjs
tjs:assert
tjs:ffi
tjs:getopts
tjs:hashing
tjs:ipaddr
tjs:path
tjs:uuid
Advanced
Type
constructor
ffi
Type
ffi
Type
Struct
name
size
from
Buffer
to
Buffer
Generated using
TypeDoc