ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
e57::BufferView Class Reference

Public Member Functions

 BufferView (const char *input, uint64_t size)
 
uint64_t pos () const
 
bool seek (uint64_t offset, int whence)
 
void read (char *buffer, uint64_t count)
 

Detailed Description

Tool class to read buffer efficiently without multiplying copy operations.

WARNING: pointer input is handled by user!

Definition at line 85 of file CheckedFile.cpp.

Constructor & Destructor Documentation

◆ BufferView()

e57::BufferView::BufferView ( const char *  input,
uint64_t  size 
)
inline
Parameters
[IN]input: filled buffer owned by caller.
[IN]size: size of input

Definition at line 90 of file CheckedFile.cpp.

Member Function Documentation

◆ pos()

uint64_t e57::BufferView::pos ( ) const
inline

Definition at line 94 of file CheckedFile.cpp.

◆ read()

void e57::BufferView::read ( char *  buffer,
uint64_t  count 
)
inline

Definition at line 123 of file CheckedFile.cpp.

References count.

◆ seek()

bool e57::BufferView::seek ( uint64_t  offset,
int  whence 
)
inline

Definition at line 99 of file CheckedFile.cpp.

References offset, SEEK_CUR, SEEK_END, and SEEK_SET.


The documentation for this class was generated from the following file: