NewEncoder returns an Encoder for a new element within the given section, and encodes the given SyncMarker as the start of the element bitstream.
(k RelocKind, marker SyncMarker)
| 122 | // section, and encodes the given SyncMarker as the start of the |
| 123 | // element bitstream. |
| 124 | func (pw *PkgEncoder) NewEncoder(k RelocKind, marker SyncMarker) Encoder { |
| 125 | e := pw.NewEncoderRaw(k) |
| 126 | e.Sync(marker) |
| 127 | return e |
| 128 | } |
| 129 | |
| 130 | // NewEncoderRaw returns an Encoder for a new element within the given |
| 131 | // section. |