Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Internal::RRawFile::RBlockBuffer Struct Reference

Definition at line 93 of file RRawFile.hxx.

Public Member Functions

 RBlockBuffer ()=default
 
 RBlockBuffer (const RBlockBuffer &)=delete
 
 ~RBlockBuffer ()=default
 
size_t CopyTo (void *buffer, size_t nbytes, std::uint64_t offset)
 Tries to copy up to nbytes starting at offset from fBuffer into buffer. Returns number of bytes copied.
 
RBlockBufferoperator= (const RBlockBuffer &)=delete
 

Public Attributes

unsigned char * fBuffer = nullptr
 Points into the I/O buffer with data from the file, not owned.
 
std::uint64_t fBufferOffset = 0
 Where in the open file does fBuffer start.
 
size_t fBufferSize = 0
 The number of currently buffered bytes in fBuffer.
 

Constructor & Destructor Documentation

◆ RBlockBuffer() [1/2]

ROOT::Internal::RRawFile::RBlockBuffer::RBlockBuffer ( )
default

◆ RBlockBuffer() [2/2]

ROOT::Internal::RRawFile::RBlockBuffer::RBlockBuffer ( const RBlockBuffer )
delete

◆ ~RBlockBuffer()

ROOT::Internal::RRawFile::RBlockBuffer::~RBlockBuffer ( )
default

Member Function Documentation

◆ CopyTo()

size_t ROOT::Internal::RRawFile::RBlockBuffer::CopyTo ( void *  buffer,
size_t  nbytes,
std::uint64_t  offset 
)

Tries to copy up to nbytes starting at offset from fBuffer into buffer. Returns number of bytes copied.

Definition at line 46 of file RRawFile.cxx.

◆ operator=()

RBlockBuffer & ROOT::Internal::RRawFile::RBlockBuffer::operator= ( const RBlockBuffer )
delete

Member Data Documentation

◆ fBuffer

unsigned char* ROOT::Internal::RRawFile::RBlockBuffer::fBuffer = nullptr

Points into the I/O buffer with data from the file, not owned.

Definition at line 99 of file RRawFile.hxx.

◆ fBufferOffset

std::uint64_t ROOT::Internal::RRawFile::RBlockBuffer::fBufferOffset = 0

Where in the open file does fBuffer start.

Definition at line 95 of file RRawFile.hxx.

◆ fBufferSize

size_t ROOT::Internal::RRawFile::RBlockBuffer::fBufferSize = 0

The number of currently buffered bytes in fBuffer.

Definition at line 97 of file RRawFile.hxx.

Collaboration diagram for ROOT::Internal::RRawFile::RBlockBuffer:
[legend]

The documentation for this struct was generated from the following files: