![]() |
CRM64Pro GDK v0.18.0
A free cross-platform game development kit built on top of SDL 3.0
|
Archive raw block stream. More...
Archive raw block stream.
Opens an independent stream over one raw, uncompressed and unencrypted block. Each opened BlockStream owns its own cursor and keeps the source Archive alive until close(). ArchiveMgr::close(idCDC) releases archive ownership, but the Archive stays alive while streams remain open.
Public Member Functions | |
| Sint32 | close () |
| Close the stream. | |
| Sint64 | read (void *pDst, Uint64 iSize) |
| Read bytes from the stream. | |
| Sint32 | seek (Uint64 iPosition) |
| Seek the stream. | |
| Uint64 | tell () const |
| Get the current byte position from the start of the block. | |
| Uint64 | size () const |
| Get the stream size in bytes. | |
| bool | eof () const |
| Check end-of-stream state. | |
| bool | isOpen () const |
| Check if the stream is open. | |
| Sint32 CRM64Pro::Archive::BlockStream::close | ( | ) |
Close the stream.
| Sint64 CRM64Pro::Archive::BlockStream::read | ( | void * | pDst, |
| Uint64 | iSize ) |
Read bytes from the stream.
| pDst | destination buffer. |
| iSize | maximum bytes to read. |
| Sint32 CRM64Pro::Archive::BlockStream::seek | ( | Uint64 | iPosition | ) |
Seek the stream.
| iPosition | byte position from the start of the block. |
| Uint64 CRM64Pro::Archive::BlockStream::tell | ( | ) | const |
Get the current byte position from the start of the block.
| Uint64 CRM64Pro::Archive::BlockStream::size | ( | ) | const |
Get the stream size in bytes.
| bool CRM64Pro::Archive::BlockStream::eof | ( | ) | const |
Check end-of-stream state.
| bool CRM64Pro::Archive::BlockStream::isOpen | ( | ) | const |
Check if the stream is open.