Пример #1
0
 public void SetBufferData(BufferHandle buffer, int offset, ReadOnlySpan <byte> data)
 {
     Buffer.SetData(buffer, offset, data);
 }
Пример #2
0
 public byte[] GetBufferData(BufferHandle buffer, int offset, int size)
 {
     return(Buffer.GetData(buffer, offset, size));
 }
Пример #3
0
 public void DeleteBuffer(BufferHandle buffer)
 {
     Buffer.Delete(buffer);
 }
Пример #4
0
 public BufferHandle CreateBuffer(int size)
 {
     return(Buffer.Create(size));
 }
Пример #5
0
        public BufferHandle CreateBuffer(int size)
        {
            BufferCount++;

            return(Buffer.Create(size));
        }
Пример #6
0
 public void CopyBuffer(BufferHandle source, BufferHandle destination, int srcOffset, int dstOffset, int size)
 {
     Buffer.Copy(source, destination, srcOffset, dstOffset, size);
 }