Documentation ¶
Index ¶
Constants ¶
View Source
const ( FmapAreaStatic = 1 << iota FmapAreaCompressed FmapAreaReadOnly )
Flags which can be applied to Area.Flags.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FMap ¶
FMap structure serializable using encoding.Binary.
type Header ¶
type Header struct { Signature [8]uint8 VerMajor uint8 VerMinor uint8 Base uint64 Size uint32 Name String NAreas uint16 }
Header describes the flash part.
type Metadata ¶
type Metadata struct {
Start uint64
}
Metadata contains additional data not part of the FMap.
type String ¶
type String struct {
Value [32]uint8
}
String wraps around byte array to give us more control over how strings are serialized.
func (*String) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*String) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.