Пример #1
0
        public void PutBytes(int index, IDirectBuffer srcBuffer, int srcIndex, int length)
        {
            BoundsCheck0(index, length);
            srcBuffer.BoundsCheck(srcIndex, length);

            void *destination = _pBuffer + index;
            void *source      = (byte *)srcBuffer.BufferPointer.ToPointer() + srcIndex;

            ByteUtil.MemoryCopy(destination, source, (uint)length);
        }
Пример #2
0
        public void PutBytes(int index, IDirectBuffer srcBuffer, int srcIndex, int length)
#endif
        {
            if (length == 0)
            {
                return;
            }

            BoundsCheck0(index, length);
            srcBuffer.BoundsCheck(srcIndex, length);

            byte *destination = _pBuffer + index;
            byte *source      = (byte *)srcBuffer.BufferPointer.ToPointer() + srcIndex;

            ByteUtil.MemoryCopy(destination, source, (uint)length);
        }
Пример #3
0
        public void PutBytes(int index, IDirectBuffer srcBuffer, int srcIndex, int length)
        {
            BoundsCheck0(index, length);
            srcBuffer.BoundsCheck(srcIndex, length);

            void* destination = _pBuffer + index;
            void* source = (byte*) srcBuffer.BufferPointer.ToPointer() + srcIndex;
            ByteUtil.MemoryCopy(destination, source, (uint) length);
        }