Go to the documentation of this file.
36 #include AK/SoundEngine/Common/AkSoundEngineExport.h>
37 #include AK/Tools/Common/AkBankReadHelpers.h>
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 instead.");
135 return reinterpret_castT*>(GetWritePtr(sizeof(T)));
143 AK::WriteUnaligned
(pWrite, in_data);
177 const void* in_pData,
virtual bool Reserve(AkInt32 in_cBytes)
Definition of data structures for AkAudioObject.
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