Documentation ¶ Index ¶ Variables func Build(code []byte, nvram []byte, isRam bool) []byte func ChecksumUpdate(input []byte, isRam bool) bool func Extract(image []byte) ([]byte, []byte, bool, error) func Validate(image []byte, isRam bool) error Constants ¶ This section is empty. Variables ¶ View Source var ( ErrorInvalidLength = errors.New("image length not valid") ErrorInvalidHeader = errors.New("header is not valid") ErrorInvalidCRC = errors.New("CRC is not valid") ) Functions ¶ func Build ¶ func Build(code []byte, nvram []byte, isRam bool) []byte func ChecksumUpdate ¶ func ChecksumUpdate(input []byte, isRam bool) bool func Extract ¶ func Extract(image []byte) ([]byte, []byte, bool, error) func Validate ¶ func Validate(image []byte, isRam bool) error Types ¶ This section is empty. Source Files ¶ View all Source files crc.go image.go Click to show internal directories. Click to hide internal directories.