AppendUint32 writes a uint32 value to buffer and advances offset.
(value uint32)
| 237 | |
| 238 | // AppendUint32 writes a uint32 value to buffer and advances offset. |
| 239 | func (b *BufferWriter) AppendUint32(value uint32) error { |
| 240 | b.AlignBytes(1) |
| 241 | if err := b.WriteUint32(value, b.offset); err != nil { |
| 242 | return err |
| 243 | } |
| 244 | b.offset += 4 |
| 245 | return nil |
| 246 | } |
| 247 | |
| 248 | // AppendUint64 writes a uint64 value to buffer and advances offset. |
| 249 | func (b *BufferWriter) AppendUint64(value uint64) error { |
no test coverage detected