public void ReadBytes(byte[] data) { GCHandle handle = GCHandle.Alloc(data, GCHandleType.Pinned); _block = (_ADPCMBlock)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(_ADPCMBlock)); handle.Free(); }
public ADPCMBlock() { _block = new _ADPCMBlock(); }