Detailed Description
The PByteStreamImpl class is the common interface to all PByteStream.
Definition at line 21 of file PByteStreamImpl.h.
#include <PByteStreamImpl.h>
Constructor & Destructor Documentation
◆ PByteStreamImpl() [1/2]
|
inline |
Definition at line 24 of file PByteStreamImpl.h.
◆ PByteStreamImpl() [2/2]
|
inline |
Definition at line 25 of file PByteStreamImpl.h.
◆ ~PByteStreamImpl()
|
inlinevirtual |
Destroys this object.
Definition at line 30 of file PByteStreamImpl.h.
Member Function Documentation
◆ CanRead()
|
inlinevirtual |
Returns true if this stream supports reading, false otherwise.
Definition at line 119 of file PByteStreamImpl.h.
◆ CanSeek()
|
inlinevirtual |
Returns true if this stream supports seeking, false otherwise.
Definition at line 61 of file PByteStreamImpl.h.
◆ CanWrite()
|
inlinevirtual |
Returns true if this stream supports writing, false otherwise.
Definition at line 146 of file PByteStreamImpl.h.
◆ Close()
|
inlinevirtual |
Closes this stream and releases any resources associated with.
Definition at line 53 of file PByteStreamImpl.h.
◆ Flush()
|
inlinevirtual |
Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
Definition at line 45 of file PByteStreamImpl.h.
◆ GetPosition()
|
inlinevirtual |
Returns the current position in this stream (if seeking is supported, 0 otherwise).
Definition at line 70 of file PByteStreamImpl.h.
◆ HasSize()
|
inlinevirtual |
Returns true if this stream has a predefined length, false otherwise.
Definition at line 94 of file PByteStreamImpl.h.
◆ IsOpened()
|
inlinevirtual |
Returns PResult::C_OK if the stream is ready for reading, another result otherwise.
Definition at line 36 of file PByteStreamImpl.h.
◆ ReadByte()
|
inlinevirtual |
Reads a byte from this stream, if reading is supported.
Returns PResult::C_OK if success, another result otherwise.
Definition at line 128 of file PByteStreamImpl.h.
◆ ReadBytes()
|
inlinevirtual |
UNSAFE: Reads up to n bytes from this stream, if reading is supported, and stores them into the specified buffer.
Returns PResult::C_OK if success, another result otherwise.
Definition at line 138 of file PByteStreamImpl.h.
◆ Resize()
|
inlinevirtual |
Sets the size of this stream, is possible.
Returns PResult::C_OK if success, another result otherwise.
Definition at line 111 of file PByteStreamImpl.h.
◆ Rewind()
|
inlinevirtual |
Resets the position within the current stream (sets position to the first byte), if seeking is supported.
Definition at line 86 of file PByteStreamImpl.h.
◆ Seek()
|
inlinevirtual |
Sets the position within the current stream if seeking is supported.
Definition at line 78 of file PByteStreamImpl.h.
◆ Size()
|
inlinevirtual |
Returns the size of this stream in bytes, if available.
Definition at line 102 of file PByteStreamImpl.h.
◆ ToString()
|
inlinevirtual |
Returns a string representation of this object.
Definition at line 172 of file PByteStreamImpl.h.
◆ WriteByte()
|
inlinevirtual |
Writes a byte to this stream, if writing is supported.
Returns PResult::C_OK if success, another result otherwise.
Definition at line 155 of file PByteStreamImpl.h.
◆ WriteBytes()
|
inlinevirtual |
Writes n bytes from the specified array to this stream, if writing is supported.
Returns PResult::C_OK if success, another result otherwise.
Definition at line 164 of file PByteStreamImpl.h.