private int WriteSyncBuffer(byte[] bufferFrom, byte *syncBuffer) { Marshal.Copy ( bufferFrom, 0, (IntPtr)syncBuffer, bufferFrom.Length ); return(Ogg.ogg_sync_wrote ( ref oggSyncState, bufferFrom.Length )); }