コード例 #1
0
    public void CopyByteArray(ref ByteInputStream input, int maxCount)
    {
        var count = (int)input.ReadUInt16();

        WriteUIntPacked((uint)count);
        if (count > 0)
        {
            Align();
            input.ReadBytes(m_Buffer, m_CurrentByteIdx, count, maxCount);
            m_CurrentByteIdx += count;
        }
        else
        {
            input.SkipBytes(maxCount);
        }
    }