(b []byte, s string)
| 608 | } |
| 609 | |
| 610 | func appendLengthEncodedString(b []byte, s string) []byte { |
| 611 | b = appendLengthEncodedInteger(b, uint64(len(s))) |
| 612 | return append(b, s...) |
| 613 | } |
| 614 | |
| 615 | // reserveBuffer checks cap(buf) and expand buffer to len(buf) + appendSize. |
| 616 | // If cap(buf) is not enough, reallocate new buffer. |
no test coverage detected