Warning: you were redirected to the latest documentation corresponding to your major release ( 2022.1.12.8435 ). Should you wish to access your specific version's documentation, please download the offline documentation from the Audiokinetic Launcher and check the Offline Documentation option in Wwise Authoring.
Go to the documentation of this file.
48 const void * in_pBytes,
64 const void * in_pBytes,
86 const void * in_pData,
120 AkInt32 cNewPos = cPos + in_cBytes;
122 if ((m_cBytes >= cNewPos) || Grow(cNewPos))
125 return m_pBytes + cPos;
134 static_assert(
alignof(T) == 1,
"T must have an alignment of 1 to avoid crashes due to unaligned writes on 32-bit ARM targets. Use Write<T> instead.");
135 return reinterpret_cast<T*
>(
GetWritePtr(
sizeof(T)));
143 AK::WriteUnaligned<T>(pWrite, in_data);
177 const void* in_pData,
virtual bool Reserve(AkInt32 in_cBytes)
void Attach(const void *in_pBytes, AkInt32 in_cBytes)
virtual AkUInt8 * Detach()
Return pointer to buffer and clear internal pointer.
AkInt32 AkMemPoolId
Memory pool ID.
uint8_t AkUInt8
Unsigned 8-bit integer.
virtual bool WriteBytes(const void *in_pData, AkInt32 in_cBytes, AkInt32 &out_cWritten)
int32_t AkInt32
Signed 32-bit integer.
#define AKSOUNDENGINE_API
bool Write(const T &in_data)
virtual ~WriteBytesBuffer()
void SetBuffer(AkUInt8 *in_pBytes, AkInt32 in_cSize)
ReadBytesMem(const void *in_pBytes, AkInt32 in_cBytes)
virtual void SetCount(AkInt32 in_cBytes)
Set number of bytes written.
virtual AkUInt8 * Bytes() const
virtual AkInt32 Count() const
virtual bool ReadBytes(void *in_pData, AkInt32 in_cBytes, AkInt32 &out_cRead)
virtual bool WriteBytes(const void *in_pData, AkInt32 in_cBytes, AkInt32 &out_cWritten)
virtual void Clear()
Clear the buffer contents.
void SetMemPool(AkMemPoolId in_pool)
AkUInt8 * GetWritePtr(AkInt32 in_cBytes)
Tell us about your project. We're here to help.
Register your project and we'll help you get started with no strings attached!
Get started with Wwise