Search
Preparing search index...
The search index is not available
Truffle Decoding and Encoding
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
@truffle/codec
Basic
Decode
Module Decode
Index
Variables
debug
Functions
check
Padding
Left
check
Padding
Right
check
Padding
Signed
decode
Basic
decode
Constant
decode
Contract
decode
Contract
And
Context
decode
External
Function
decode
Internal
Function
decode
String
Variables
Const
debug
debug
:
IDebugger
= debugModule("codec:basic:decode")
Functions
check
Padding
Left
check
Padding
Left
(
bytes
:
Uint8Array
, length
:
number
)
:
boolean
Parameters
bytes:
Uint8Array
length:
number
Returns
boolean
check
Padding
Right
check
Padding
Right
(
bytes
:
Uint8Array
, length
:
number
)
:
boolean
Parameters
bytes:
Uint8Array
length:
number
Returns
boolean
check
Padding
Signed
check
Padding
Signed
(
bytes
:
Uint8Array
, length
:
number
)
:
boolean
Parameters
bytes:
Uint8Array
length:
number
Returns
boolean
decode
Basic
decode
Basic
(
dataType
:
Type
, pointer
:
DataPointer
, info
:
EvmInfo
, options
?:
DecoderOptions
)
:
Generator
<
DecoderRequest
,
Result
,
Uint8Array
>
Parameters
dataType:
Type
pointer:
DataPointer
info:
EvmInfo
Default value
options:
DecoderOptions
= {}
Returns
Generator
<
DecoderRequest
,
Result
,
Uint8Array
>
decode
Constant
decode
Constant
(
dataType
:
Type
, pointer
:
ConstantDefinitionPointer
, info
:
EvmInfo
)
:
Generator
<
DecoderRequest
,
Result
,
Uint8Array
>
Parameters
dataType:
Type
pointer:
ConstantDefinitionPointer
info:
EvmInfo
Returns
Generator
<
DecoderRequest
,
Result
,
Uint8Array
>
decode
Contract
decode
Contract
(
addressBytes
:
Uint8Array
, info
:
EvmInfo
)
:
Generator
<
DecoderRequest
,
ContractValueInfo
,
Uint8Array
>
Parameters
addressBytes:
Uint8Array
info:
EvmInfo
Returns
Generator
<
DecoderRequest
,
ContractValueInfo
,
Uint8Array
>
decode
Contract
And
Context
decode
Contract
And
Context
(
addressBytes
:
Uint8Array
, info
:
EvmInfo
)
:
Generator
<
DecoderRequest
,
ContractInfoAndContext
,
Uint8Array
>
Parameters
addressBytes:
Uint8Array
info:
EvmInfo
Returns
Generator
<
DecoderRequest
,
ContractInfoAndContext
,
Uint8Array
>
decode
External
Function
decode
External
Function
(
addressBytes
:
Uint8Array
, selectorBytes
:
Uint8Array
, info
:
EvmInfo
)
:
Generator
<
DecoderRequest
,
FunctionExternalValueInfo
,
Uint8Array
>
Parameters
addressBytes:
Uint8Array
selectorBytes:
Uint8Array
info:
EvmInfo
Returns
Generator
<
DecoderRequest
,
FunctionExternalValueInfo
,
Uint8Array
>
decode
Internal
Function
decode
Internal
Function
(
dataType
:
FunctionInternalType
, deployedPcBytes
:
Uint8Array
, constructorPcBytes
:
Uint8Array
, info
:
EvmInfo
)
:
FunctionInternalResult
Parameters
dataType:
FunctionInternalType
deployedPcBytes:
Uint8Array
constructorPcBytes:
Uint8Array
info:
EvmInfo
Returns
FunctionInternalResult
decode
String
decode
String
(
bytes
:
Uint8Array
)
:
StringValueInfo
Parameters
bytes:
Uint8Array
Returns
StringValueInfo
Globals
debug
check
Padding
Left
check
Padding
Right
check
Padding
Signed
decode
Basic
decode
Constant
decode
Contract
decode
Contract
And
Context
decode
External
Function
decode
Internal
Function
decode
String
Generated using
TypeDoc