(buf []byte, length int)
| 727 | } |
| 728 | |
| 729 | func appendZero(buf []byte, length int) []byte { |
| 730 | var tmp [8]byte |
| 731 | rem := length % 8 |
| 732 | loop := length / 8 |
| 733 | for i := 0; i < loop; i++ { |
| 734 | buf = append(buf, tmp[:]...) |
| 735 | } |
| 736 | for i := 0; i < rem; i++ { |
| 737 | buf = append(buf, 0) |
| 738 | } |
| 739 | return buf |
| 740 | } |
| 741 | |
| 742 | func appendUint32(buf []byte, v uint32) []byte { |
| 743 | var tmp [4]byte |
no outgoing calls
no test coverage detected