NewDecoder constructs and returns a new Decoder that reads from r using the memory layout m.
(r binary.Reader, m *device.MemoryLayout)
| 32 | // NewDecoder constructs and returns a new Decoder that reads from r using |
| 33 | // the memory layout m. |
| 34 | func NewDecoder(r binary.Reader, m *device.MemoryLayout) *Decoder { |
| 35 | return &Decoder{r, m, 0} |
| 36 | } |
| 37 | |
| 38 | func (d *Decoder) alignAndOffset(l *device.DataTypeLayout) { |
| 39 | d.Align(uint64(l.Alignment)) |
no outgoing calls
no test coverage detected