wasm-reader ~master (2019-11-01T21:40:58Z)
Dub
Repo
Section
wasm_reader
reader
Undocumented in source.
struct
Section {
static
auto
calcPayloadLength
(Section section, size_t[string] marks);
@
encoding
!
varuint7
uint
id
;
@
encoding
!
varuint32
uint
payload_len
;
@
condition
!"id == 0"
@
positionMark
!"a"
@
encoding
!
varuint32
uint
name_len
;
@
condition
!"id == 0"
@
length
!"name_len"
string
name
;
@
positionMark
!"b"
@
length
!
calcPayloadLength
ubyte
[]
payload
;
uint
size
();
}
Members
Functions
size
uint
size
()
Undocumented in source. Be warned that the author may not have intended to support it.
Static functions
calcPayloadLength
auto
calcPayloadLength
(Section section, size_t[string] marks)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
id
uint
id
;
Undocumented in source.
name
string
name
;
Undocumented in source.
name_len
uint
name_len
;
Undocumented in source.
payload
ubyte
[]
payload
;
Undocumented in source.
payload_len
uint
payload_len
;
Undocumented in source.
Meta
Source
See Implementation
wasm_reader
reader
enums
elem_type
external_kind
value_type
functions
readEncoding
readSections
structs
RangeWithPosition
Section
Sections
condition
encoding
global_type
header
import_entry
import_section
length
memory_type
positionMark
resizable_limits
table_type
templates
read
readMember