Read into the buffer from a file returning the number of bytes read
| 70 | |
| 71 | // Read into the buffer from a file returning the number of bytes read |
| 72 | int NetworkBuffer::ReadFromFile(FileStore *f) noexcept |
| 73 | { |
| 74 | const int ret = f->Read(reinterpret_cast<char *_ecv_array>(data), bufferSize); |
| 75 | dataLength = (ret > 0) ? (size_t)ret : 0; |
| 76 | readPointer = 0; |
| 77 | return ret; |
| 78 | } |
| 79 | |
| 80 | #endif |
| 81 |
no test coverage detected