proxygen
RecordIO.h File Reference
#include <atomic>
#include <memory>
#include <mutex>
#include <folly/File.h>
#include <folly/Range.h>
#include <folly/io/IOBuf.h>
#include <folly/system/MemoryMapping.h>
#include <folly/io/RecordIO-inl.h>

Go to the source code of this file.

Classes

class  folly::RecordIOWriter
 
class  folly::RecordIOReader
 
struct  folly::recordio_helpers::RecordInfo
 

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 
 folly::recordio_helpers
 

Macros

#define FOLLY_IO_RECORDIO_H_
 

Functions

constexpr size_t folly::recordio_helpers::headerSize ()
 
size_t folly::recordio_helpers::prependHeader (std::unique_ptr< IOBuf > &buf, uint32_t fileId)
 
RecordInfo folly::recordio_helpers::findRecord (ByteRange searchRange, ByteRange wholeRange, uint32_t fileId)
 
RecordInfo folly::recordio_helpers::findRecord (ByteRange range, uint32_t fileId)
 
RecordInfo folly::recordio_helpers::validateRecord (ByteRange range, uint32_t fileId)
 

Macro Definition Documentation

#define FOLLY_IO_RECORDIO_H_

RecordIO: self-synchronizing stream of variable length records

RecordIO gives you the ability to write a stream of variable length records and read them later even in the face of data corruption – randomly inserted or deleted chunks of the file, or modified data. When reading, you may lose corrupted records, but the stream will resynchronize automatically.

Definition at line 27 of file RecordIO.h.