[詳解]
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)
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)
あなたのプロジェクトについて教えてください。ご不明な点はありませんか。
プロジェクトを登録していただくことで、ご利用開始のサポートをいたします。
Wwiseからはじめよう