API Reference > Extension Classes > ExServices Classes > OdBaseFileBuf Class
OdBaseFileBuf Class
OdBaseFileBufOdBaseFileBufOdBaseFileBuf
Syntax
C++
class OdBaseFileBuf : public OdRxObjectImpl<OdStreamBuf>;

OdFileBuf.h

This class is the base file I/O class.

Source code provided.

 
Name 
Description 
 
This is ~OdBaseFileBuf, a member of class OdBaseFileBuf. 
 
This is OdBaseFileBuf, a member of class OdBaseFileBuf. 
 
Name 
Description 
 
Closes the file opened by this StreamBuf object. 
 
Returns the name of the file associated with this StreamBuf object. 
 
Returns the byte at the current position of the file pointer for this StreamBuf object, and increments the pointer. 
 
Returns the specified number of bytes, starting at the current position of the file pointer for this StreamBuf object, and increments the pointer by numBytes.  
 
virtual OdUInt64 length(); 
 
Returns true if and only if the current position of the file pointer for this StreamBuf object is at the end of file. 
 
Returns the length in bytes of the file associated with this StreamBuf object. 
 
open 
Opens the specified file with this StreamBuf object.  
 
Writes the byte to the current position of the file pointer for this StreamBuf object, and increments the pointer.  
 
Writes the specified number of bytes, starting at the current position of the file pointer for this StreamBuf object, and increments the pointer by numBytes.  
 
seek 
Moves the current position of the file pointer for this StreamBuf object to the specified location.
 
 
tell 
Returns the current position of the file pointer for this StreamBuf object. 
 
Sets the physical file size for the specified file associated with this StreamBuf object to the current position of the file pointer. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.