 |
XMP Toolkit SDK
6.0.0
|
Go to the documentation of this file.
2 #define __XMP_IO_hpp__ 1
61 virtual XMP_Uns32
Read (
void* buffer, XMP_Uns32 count,
bool readAll =
false ) = 0;
63 inline XMP_Uns32
ReadAll (
void* buffer, XMP_Uns32 bytes )
75 virtual void Write (
const void* buffer, XMP_Uns32 count ) = 0;
90 virtual XMP_Int64
Seek ( XMP_Int64 offset,
SeekMode mode ) = 0;
103 virtual XMP_Int64
Length() = 0;
114 virtual void Truncate ( XMP_Int64 length ) = 0;
171 #endif // __XMP_IO_hpp__
virtual XMP_Int64 Length()=0
Return the length of the file in bytes.
XMP_Uns32 ReadAll(void *buffer, XMP_Uns32 bytes)
Common C/C++ types and constants for the XMP toolkit.
SeekMode
Seek mode constants for use with XMP_IO and inside XMPFiles library code.
void operator=(const XMP_IO &)
virtual void Truncate(XMP_Int64 length)=0
Truncate the file to the given length.
virtual void AbsorbTemp()=0
Replace the owning file's content with that of the temp.
Abstract base class for client-managed I/O with TXMPFiles.
virtual void DeleteTemp()=0
Delete a temp file, leaving the original alone.
virtual XMP_IO * DeriveTemp()=0
Create an associated temp file for use in a safe-save style operation.
virtual void Write(const void *buffer, XMP_Uns32 count)=0
Write from a buffer.
virtual XMP_Int64 Seek(XMP_Int64 offset, SeekMode mode)=0
Set the I/O position, returning the new absolute offset in bytes.
virtual XMP_Uns32 Read(void *buffer, XMP_Uns32 count, bool readAll=false)=0
Read into a buffer, returning the number of bytes read.