Search
Preparing search index...
The search index is not available
Kryo
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"types/bytes"
BytesType
Class BytesType
Hierarchy
BytesType
Implements
IoType
<
Uint8Array
>
VersionedType
<
Uint8Array
,
Diff
>
Ord
<
Uint8Array
>
Index
Constructors
constructor
Properties
_options
max
Length
Methods
_apply
Options
clone
diff
equals
lte
patch
read
reverse
Diff
squash
test
test
Error
write
Constructors
constructor
new
Bytes
Type
(
options
:
Lazy
<
BytesTypeOptions
>
)
:
BytesType
Parameters
options:
Lazy
<
BytesTypeOptions
>
Returns
BytesType
Properties
Private
_options
_options
:
Lazy
<
BytesTypeOptions
>
max
Length
max
Length
:
number
Methods
Private
_apply
Options
_apply
Options
(
)
:
void
Returns
void
clone
clone
(
val
:
Uint8Array
)
:
Uint8Array
Parameters
val:
Uint8Array
Returns
Uint8Array
diff
diff
(
_oldVal
:
Uint8Array
, _newVal
:
Uint8Array
)
:
Diff
|
undefined
Parameters
_oldVal:
Uint8Array
_newVal:
Uint8Array
Returns
Diff
|
undefined
true
if there is a difference,
undefined
otherwise
equals
equals
(
left
:
Uint8Array
, right
:
Uint8Array
)
:
boolean
Parameters
left:
Uint8Array
right:
Uint8Array
Returns
boolean
lte
lte
(
left
:
Uint8Array
, right
:
Uint8Array
)
:
boolean
Parameters
left:
Uint8Array
right:
Uint8Array
Returns
boolean
patch
patch
(
_oldVal
:
Uint8Array
, _diff
:
Diff
|
undefined
)
:
Uint8Array
Parameters
_oldVal:
Uint8Array
_diff:
Diff
|
undefined
Returns
Uint8Array
read
read<R>
(
reader
:
Reader
<
R
>
, raw
:
R
)
:
Uint8Array
Type parameters
R
Parameters
reader:
Reader
<
R
>
raw:
R
Returns
Uint8Array
reverse
Diff
reverse
Diff
(
_diff
:
Diff
|
undefined
)
:
Diff
|
undefined
Parameters
_diff:
Diff
|
undefined
Returns
Diff
|
undefined
squash
squash
(
_diff1
:
Diff
|
undefined
, _diff2
:
Diff
|
undefined
)
:
Diff
|
undefined
Parameters
_diff1:
Diff
|
undefined
_diff2:
Diff
|
undefined
Returns
Diff
|
undefined
test
test
(
val
:
Uint8Array
)
:
boolean
Parameters
val:
Uint8Array
Returns
boolean
test
Error
test
Error
(
val
:
Uint8Array
)
:
Error
|
undefined
Parameters
val:
Uint8Array
Returns
Error
|
undefined
write
write<W>
(
writer
:
Writer
<
W
>
, value
:
Uint8Array
)
:
W
Type parameters
W
Parameters
writer:
Writer
<
W
>
value:
Uint8Array
Returns
W
Globals
"types/bytes"
Bytes
Type
constructor
_options
max
Length
_apply
Options
clone
diff
equals
lte
patch
read
reverse
Diff
squash
test
test
Error
write
Bytes
Type
Options
Diff
Generated using
TypeDoc