using System; using System.Runtime.InteropServices; namespace SoundIOSharp { public struct SoundIOChannelArea { internal SoundIOChannelArea (Pointer handle) { this.handle = handle; } Pointer handle; public IntPtr Pointer { get { return Marshal.ReadIntPtr (handle, ptr_offset); } set { Marshal.WriteIntPtr (handle, ptr_offset, value); } } static readonly int ptr_offset = (int) Marshal.OffsetOf ("ptr"); public int Step { get { return Marshal.ReadInt32 (handle, step_offset); } } static readonly int step_offset = (int)Marshal.OffsetOf ("step"); } }