(b []byte)
| 226 | } |
| 227 | |
| 228 | func PutLengthEncodedString(b []byte) []byte { |
| 229 | data := make([]byte, 0, len(b)+9) |
| 230 | data = append(data, PutLengthEncodedInt(uint64(len(b)))...) |
| 231 | data = append(data, b...) |
| 232 | return data |
| 233 | } |
| 234 | |
| 235 | func Uint16ToBytes(n uint16) []byte { |
| 236 | return []byte{ |
no test coverage detected