Exemple #1
0
        public void ReadBytes(byte[] data)
        {
            GCHandle handle = GCHandle.Alloc(data, GCHandleType.Pinned);

            _block = (_ADPCMBlock)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(_ADPCMBlock));
            handle.Free();
        }
Exemple #2
0
 public ADPCMBlock()
 {
     _block = new _ADPCMBlock();
 }