Done returns the final output of the encoder. This UidPack MUST BE FREED via a call to FreePack.
()
| 151 | |
| 152 | // Done returns the final output of the encoder. This UidPack MUST BE FREED via a call to FreePack. |
| 153 | func (e *Encoder) Done() *UidPack { |
| 154 | e.packBlock() |
| 155 | if e.pack != nil && e.Alloc != nil { |
| 156 | e.pack.AllocRef = e.Alloc.Ref |
| 157 | } |
| 158 | return e.pack |
| 159 | } |
| 160 | |
| 161 | // Decoder is used to read a UidPack object back into a list of UIDs. |
| 162 | type Decoder struct { |
no test coverage detected