(value uint32)
| 1415 | } |
| 1416 | |
| 1417 | func (b *ByteBuffer) continueWriteVarUint32Small7(value uint32) int { |
| 1418 | encoded := uint64(value & 0x7F) |
| 1419 | encoded |= uint64((value&0x3f80)<<1) | 0x80 |
| 1420 | idx := b.writerIndex |
| 1421 | if value>>14 == 0 { |
| 1422 | b.unsafePutInt32(idx, int32(encoded)) |
| 1423 | b.writerIndex += 2 |
| 1424 | return 2 |
| 1425 | } |
| 1426 | d := b.continuePutVarint36(idx, encoded, uint64(value)) |
| 1427 | b.writerIndex += d |
| 1428 | return d |
| 1429 | } |
| 1430 | |
| 1431 | func (b *ByteBuffer) continuePutVarint36(index int, encoded, value uint64) int { |
| 1432 | // bits 14 |
no test coverage detected