(b []byte)
| 210 | } |
| 211 | |
| 212 | func SkipLengthEncodedString(b []byte) (int, error) { |
| 213 | // Get length |
| 214 | num, _, n := LengthEncodedInt(b) |
| 215 | if num < 1 { |
| 216 | return n, nil |
| 217 | } |
| 218 | |
| 219 | n += int(num) |
| 220 | |
| 221 | // Check data length |
| 222 | if len(b) >= n { |
| 223 | return n, nil |
| 224 | } |
| 225 | return n, io.EOF |
| 226 | } |
| 227 | |
| 228 | func PutLengthEncodedString(b []byte) []byte { |
| 229 | data := make([]byte, 0, len(b)+9) |
no test coverage detected