public bool OpenStream( bool Buffered, bool Dynamic, ref byte[] MemStream, uint StreamSize, TStreamFormat nFormat) { int fBuffered = 0; int fManaged = 0; if (Buffered) { fBuffered = 1; } if (Dynamic) { fManaged = 1; } return(ZPlay.zplay_OpenStream(this.objptr, fBuffered, fManaged, MemStream, StreamSize, Convert.ToInt32((object)nFormat)) == 1); }