NewEncoder constructs and returns a new Encoder that writes to w using the memory layout m.
(w binary.Writer, m *device.MemoryLayout)
| 32 | // NewEncoder constructs and returns a new Encoder that writes to w using |
| 33 | // the memory layout m. |
| 34 | func NewEncoder(w binary.Writer, m *device.MemoryLayout) *Encoder { return &Encoder{w, m, 0} } |
| 35 | |
| 36 | func (e *Encoder) alignAndOffset(d *device.DataTypeLayout) { |
| 37 | e.Align(uint64(d.Alignment)) |
no outgoing calls