3#include <system/shared_ptr.h>
4#include <system/idisposable.h>
5#include <system/exceptions.h>
6#include <system/default.h>
7#include <system/memory.h>
10#include "system/net/array_buffer.h"
11#include "system/buffers/i_buffer_writer.h"
19template <
typename>
class Memory;
20template <
typename>
class ReadOnlyMemory;
21template <
typename>
class ReadOnlySpan;
22template <
typename>
class Span;
37 typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
38 ASPOSECPP_SHARED_RTTI_INFO_DECL();
50 ASPOSECPP_SHARED_API
void Clear();
52 ASPOSECPP_SHARED_API
void Dispose()
override;
55 ASPOSECPP_SHARED_API
void Advance(int32_t count)
override;
62 #ifdef ASPOSE_GET_SHARED_MEMBERS
63 void GetSharedMembers(System::Object::shared_members_type& result)
const override;
68 static const int32_t MinimumBufferSize = 256;
Represents a sink for data, into which a consumer can write data. Objects of this class should only b...
Definition: i_buffer_writer.h:24
Defines method that releases resources owned by the current object. Objects of this class should only...
Definition: idisposable.h:30
Definition: array_buffer.h:18
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Represents a contiguous region of arbitrary memory similar to C++20's std::span.
Definition: span.h:375
Definition: pooled_byte_buffer_writer.h:32
PooledByteBufferWriter(int32_t initialCapacity)
static System::SharedPtr< PooledByteBufferWriter > CreateEmptyInstanceForCaching()
void Advance(int32_t count) override
Notifies the IBufferWriter implementation that count elements were written to the output.
bool get_CanGetUnflushedBytes()
Span< uint8_t > GetSpan(int32_t sizeHint=MinimumBufferSize) override
Returns a Span that can be written to, and is guaranteed to have at least sizeHint elements.
void Dispose() override
Does nothing.
ReadOnlySpan< uint8_t > get_WrittenSpan()
void WriteToStream(System::SharedPtr< IO::Stream > destination)
void ClearAndReturnBuffers()
Memory< uint8_t > GetMemory(int32_t sizeHint=MinimumBufferSize) override
Returns a Memory that can be written to, and is guaranteed to have at least sizeHint elements.
int64_t get_UnflushedBytes()
void InitializeEmptyInstance(int32_t initialCapacity)
ReadOnlyMemory< uint8_t > get_WrittenMemory()
@ Text
Defines color adjustment information for text.
@ Stream
The type that supports reliable, two-way, connection-based byte streams without duplication of data a...
Definition: db_command.h:9