#include <coherence/io/DelegatingWriteBuffer.hpp>
Inherits AbstractWriteBuffer::AbstractBufferOutput.
Public Types | |||||||||||||||||||
typedef spec::Handle | Handle | ||||||||||||||||||
DelegatingBufferOutput Handle definition. | |||||||||||||||||||
typedef spec::View | View | ||||||||||||||||||
DelegatingBufferOutput View definition. | |||||||||||||||||||
typedef spec::Holder | Holder | ||||||||||||||||||
DelegatingBufferOutput Holder definition. | |||||||||||||||||||
Public Member Functions | |||||||||||||||||||
virtual void | write (octet_t b) | ||||||||||||||||||
Write the given octet.
| |||||||||||||||||||
virtual void | write (Array< octet_t >::View vab, size32_t of, size32_t cb) | ||||||||||||||||||
Writes cb octets starting at offset of from the array vab .
| |||||||||||||||||||
virtual void | writeBuffer (ReadBuffer::View vBuf) | ||||||||||||||||||
Write all the octets from the passed ReadBuffer object.
This is functionally equivalent to the following code:
| |||||||||||||||||||
virtual void | writeBuffer (ReadBuffer::View vBuf, size32_t of, size32_t cb) | ||||||||||||||||||
Write cb octets from the passed ReadBuffer object starting at offset of within the passed ReadBuffer.
This is functionally equivalent to the following code:
| |||||||||||||||||||
virtual void | writeBoolean (bool f) | ||||||||||||||||||
Write a boolean value.
| |||||||||||||||||||
virtual void | writeChar16 (wchar16_t ch) | ||||||||||||||||||
Write a 16-bit Unicode character value.
| |||||||||||||||||||
virtual void | writeFloat32 (float32_t fl) | ||||||||||||||||||
Write a 32-bit floating-point value.
| |||||||||||||||||||
virtual void | writeFloat64 (float64_t dfl) | ||||||||||||||||||
Write a 64-bit floating-point value.
| |||||||||||||||||||
Protected Member Functions | |||||||||||||||||||
DelegatingBufferOutput (DelegatingWriteBuffer::Handle hBuf) | |||||||||||||||||||
Create a new DelegatingBufferOutput instance that delegates to the BufferOutput of the underlying WriteBuffer of the given DelegatingWriteBuffer. | |||||||||||||||||||
virtual void | moveOffset (size32_t cb) | ||||||||||||||||||
Move the offset within the stream forward. | |||||||||||||||||||
Protected Attributes | |||||||||||||||||||
FinalHandle < BufferOutput > | f_hOut | ||||||||||||||||||
The BufferOutput to delegate to. |
DelegatingBufferOutput | ( | DelegatingWriteBuffer::Handle | hBuf | ) | [protected] |
Create a new DelegatingBufferOutput instance that delegates to the BufferOutput of the underlying WriteBuffer of the given DelegatingWriteBuffer.
hBuf | the delegate WriteBuffer |
virtual void moveOffset | ( | size32_t | cb | ) | [protected, virtual] |
Move the offset within the stream forward.
cb | the number of octets to advance the offset |