OpenShot Library | libopenshot-audio
0.2.0
|
49 bool initialiseToZero =
false);
59 MemoryBlock (
const void* dataToInitialiseFrom,
size_t sizeInBytes);
79 bool operator== (
const MemoryBlock& other)
const noexcept;
84 bool operator!= (
const MemoryBlock& other)
const noexcept;
87 bool matches (
const void* data,
size_t dataSize)
const noexcept;
95 void*
getData() const noexcept {
return data; }
100 template <
typename Type>
101 char& operator[] (
const Type offset)
const noexcept {
return data [offset]; }
104 char*
begin() const noexcept {
return data; }
107 char*
end() const noexcept {
return begin() + getSize(); }
111 size_t getSize() const noexcept {
return size; }
125 void setSize (
const size_t newSize,
126 bool initialiseNewSpaceToZero =
false);
137 void ensureSize (
const size_t minimumSize,
138 bool initialiseNewSpaceToZero =
false);
147 void fillWith (uint8 valueToUse) noexcept;
152 void append (
const void* data,
size_t numBytes);
157 void replaceWith (
const void* data,
size_t numBytes);
164 void insert (
const void* dataToInsert,
size_t numBytesToInsert,
size_t insertPosition);
173 void removeSection (
size_t startByte,
size_t numBytesToRemove);
183 void copyFrom (
const void* srcData,
184 int destinationOffset,
185 size_t numBytes) noexcept;
194 void copyTo (
void* destData,
196 size_t numBytes)
const noexcept;
216 void loadFromHexString (
StringRef sourceHexString);
220 void setBitRange (
size_t bitRangeStart,
222 int binaryNumberToApply) noexcept;
225 int getBitRange (
size_t bitRangeStart,
226 size_t numBitsToRead)
const noexcept;
240 String toBase64Encoding()
const;
253 bool fromBase64Encoding (
StringRef encodedString);
A simple class for holding temporary references to a string literal or String.
void * getData() const noexcept
Returns a void pointer to the data.
char * end() const noexcept
Returns an end-iterator for the data.
char * begin() const noexcept
Returns an iterator for the data.
#define JUCE_API
This macro is added to all JUCE public class declarations.
size_t getSize() const noexcept
Returns the block's current allocated size, in bytes.
A class to hold a resizable block of raw data.