(data []byte)
| 110 | } |
| 111 | |
| 112 | func (cb *Buffer) FindPastData(data []byte) int { |
| 113 | for i := 0; i+len(data) < len(cb.Commited); i++ { |
| 114 | if bytes.Equal(cb.Commited[i:i+len(data)], data) { |
| 115 | return i |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | return -1 |
| 120 | } |
| 121 | |
| 122 | func (cb *Buffer) end(uncompressed []byte, t EncodeType) { |
| 123 | // We need 2 bytes to point to a flag, so any uncompressed value |
no outgoing calls
no test coverage detected