36 #include <AK/IBytes.h>
37 #include <AK/SoundEngine/Common/AkSoundEngineExport.h>
38 #include <AK/Tools/Common/AkBankReadHelpers.h>
49 const void * in_pBytes,
65 const void * in_pBytes,
71 const AkUInt8 * m_pBytes;
87 const void * in_pData,
89 AkInt32& out_cWritten);
97 AKSOUNDENGINE_API
virtual AkInt32
Count()
const;
103 AKSOUNDENGINE_API
virtual AkUInt8 *
Bytes()
const;
105 AKSOUNDENGINE_API
virtual AkUInt8 *
Detach();
107 AKSOUNDENGINE_API
virtual void Clear();
116 AkInt32 cPos = m_cPos;
117 AkInt32 cNewPos = cPos +
sizeof(T);
119 if ((m_cBytes >= cNewPos) || Grow(cNewPos))
121 AK::WriteUnaligned<T>(m_pBytes + cPos, in_data);
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.
virtual bool WriteBytes(const void *in_pData, AkInt32 in_cBytes, AkInt32 &out_cWritten)
bool Write(const T &in_data)
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 void Clear()
Clear the buffer contents.
void SetMemPool(AkMemPoolId in_pool)
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