Tool class to read buffer efficiently without multiplying copy operations. More...
Public Member Functions | |
BufferView (const char *input, uint64_t size) | |
uint64_t | pos () const |
void | read (char *buffer, uint64_t count) |
bool | seek (uint64_t offset, int whence) |
Tool class to read buffer efficiently without multiplying copy operations.
WARNING: pointer input is handled by user!
e57::BufferView::BufferView | ( | const char * | input, |
uint64_t | size | ||
) |
[IN] | input: filled buffer owned by caller. |
[IN] | size: size of input |
uint64_t e57::BufferView::pos | ( | ) | const |
Referenced by draftguitools.gui_beziers.BezCurve::action(), draftguitools.gui_beziers.CubicBezCurve::action(), draftguitools.gui_ellipses.Ellipse::action(), draftguitools.gui_lines.Line::action(), draftguitools.gui_rectangles.Rectangle::action(), draftguitools.gui_splines.BSpline::action(), draftguitools.gui_stretch.Stretch::action(), Mod.PartDesign.fcgear.fcgear.FCWireBuilder::arc(), Mod.PartDesign.fcgear.svggear.SVGWireBuilder::arc(), Mod.PartDesign.fcsprocket.fcsprocket.FCWireBuilder::arc(), Mod.PartDesign.fcgear.fcgear.FCWireBuilder::curve(), Mod.PartDesign.fcgear.svggear.SVGWireBuilder::curve(), Mod.PartDesign.fcsprocket.fcsprocket.FCWireBuilder::curve(), Mod.PartDesign.fcgear.fcgear.FCWireBuilder::line(), Mod.PartDesign.fcgear.svggear.SVGWireBuilder::line(), Mod.PartDesign.fcsprocket.fcsprocket.FCWireBuilder::line(), Mod.PartDesign.fcgear.fcgear.FCWireBuilder::move(), Mod.PartDesign.fcgear.svggear.SVGWireBuilder::move(), Mod.PartDesign.fcsprocket.fcsprocket.FCWireBuilder::move(), and draftguitools.gui_trackers.boxTracker::update().
void e57::BufferView::read | ( | char * | buffer, |
uint64_t | count | ||
) |
Referenced by gzip_utf8.GzipFile::readline(), and gzip_utf8.GzipFile::seek().
References draftfunctions.offset::offset().