read() attempts to read up to count bytes into the buffer. Return 0 if EOF. Throw exception if encounters errors.
| 74 | // read() attempts to read up to count bytes into the buffer. |
| 75 | // Return 0 if EOF. Throw exception if encounters errors. |
| 76 | uint64_t GPReader::read(char* buf, uint64_t count) { |
| 77 | return this->bucketReader.read(buf, count); |
| 78 | } |
| 79 | |
| 80 | // This should be reentrant, has no side effects when called multiple times. |
| 81 | void GPReader::close() { |
no outgoing calls