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 (
view full
)
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
,
conf
)
:
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
,
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
,
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
,
ctx
?
)
:
T
Parameters
buffer
:
Uint8Array
Optional
ctx
:
{}
Returns
T
to
Buffer
to
Buffer
(
data
,
ctx
?
)
:
Uint8Array
Parameters
data
:
T
Optional
ctx
:
{}
Returns
Uint8Array
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
ffi
Type
ffi
Type
Struct
name
size
Methods
from
Buffer
to
Buffer
txiki.js
Loading...