writeBytes write bytes in the stream by a given value with an offset.
(value []byte)
| 646 | |
| 647 | // writeBytes write bytes in the stream by a given value with an offset. |
| 648 | func (c *cfb) writeBytes(value []byte) { |
| 649 | pos := c.position |
| 650 | for i := 0; i < len(value); i++ { |
| 651 | for j := len(c.stream); j <= i+pos; j++ { |
| 652 | c.stream = append(c.stream, 0) |
| 653 | } |
| 654 | c.stream[i+pos] = value[i] |
| 655 | } |
| 656 | c.position = pos + len(value) |
| 657 | } |
| 658 | |
| 659 | // writeUint16 write an uint16 data type bytes in the stream by a given value |
| 660 | // with an offset. |
no outgoing calls
no test coverage detected