57 bool appendToExistingBlockContent);
75 const void* getData()
const noexcept;
83 void reset() noexcept;
88 void preallocate (
size_t bytesToPreallocate);
109 void flush() override;
111 bool write (const
void*,
size_t) override;
113 bool setPosition (
int64)
override;
115 bool writeRepeatedByte (
uint8 byte,
size_t numTimesToRepeat)
override;
121 void* externalData =
nullptr;
122 size_t position = 0, size = 0, availableSize = 0;
124 void trimExternalBlockSize();
125 char* prepareToWrite (
size_t);
A class to hold a resizable block of raw data.
Writes data to an internal memory buffer, which grows as required.
size_t getDataSize() const noexcept
Returns the number of bytes of data that have been written to the stream.
The base class for streams that write data to some kind of destination.
wchar_t juce_wchar
A platform-independent 32-bit unicode character type.
OutputStream &JUCE_CALLTYPE operator<<(OutputStream &stream, const BigInteger &value)
Writes a BigInteger to an OutputStream as a UTF8 decimal string.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
unsigned char uint8
A platform-independent 8-bit unsigned integer type.
long long int64
A platform-independent 64-bit integer type.