TupleHash defines the interface to hash functions that support tuple input.
| 8 | // TupleHash defines the interface to hash functions that |
| 9 | // support tuple input. |
| 10 | type TupleHash interface { |
| 11 | hash.Hash |
| 12 | |
| 13 | // WriteItem writes length-prefixed item to the hash state. |
| 14 | WriteItem(item []byte) (written int, err error) |
| 15 | |
| 16 | // WriteItemPrefix writes length prefix to the hash state |
| 17 | // and must be followed by normal Write calls. |
| 18 | WriteItemPrefix(length int) (written int, err error) |
| 19 | } |
| 20 | |
| 21 | // TupleHashXOF defines the interface to hash functions that |
| 22 | // support tuple input with extensible output. |
no outgoing calls
no test coverage detected