(r binary.Reader)
| 151 | } |
| 152 | |
| 153 | func decodeLength(r binary.Reader) uint32 { |
| 154 | length := uint32(r.Uint16()) |
| 155 | if length&0x8000 != 0 { |
| 156 | panic("UNTESTED CODE") |
| 157 | length = (length << 16) | uint32(r.Uint16()) |
| 158 | } |
| 159 | return length |
| 160 | } |
| 161 | |
| 162 | func encodeLength(w binary.Writer, length uint32) { |
| 163 | if length >= 0x8000 { |