Struct faiss::BufferedIOWriter

struct BufferedIOWriter : public faiss::IOWriter

Public Functions

explicit BufferedIOWriter(IOWriter *writer, size_t bsz = 1024 * 1024)
virtual size_t operator()(const void *ptr, size_t size, size_t nitems) override
~BufferedIOWriter() override
virtual int fileno()

Public Members

IOWriter *writer
size_t bsz
size_t ofs
size_t ofs2

number of bytes received from caller

size_t b0

amount of data in buffer

std::vector<char> buffer
std::string name