class SafeBuffer
The class for safely writing to a buffer.
typedef Definitions| SafeBuffer | Constructor. | |
|---|---|---|
| StartAddress | ||
| EndAddress | ||
| CurrentAddress | ||
BufferSize
|
||
| UsedSize | ||
| IsFinished | ||
| operator const u32 * | ||
| operator ++ | ||
| operator += | ||
| VerifyWriteSize | Verifies that data of the specified size can be written. Shutdown processing is executed and IsFinished() returns true if the remaining size is not enough. | |
Write
|
Writes data. Returns a negative error code and exits without writing remaining data, if available memory is insufficient. IsFinished() returns true if the write fails due to a capacity problem. |
CONFIDENTIAL