public RWOpsFromInterface(IRWOps stream, int bufSize) : this() { partial = new ArraySegment <byte>(new byte[bufSize]).Slice(0, 0); Implementation = stream; var reg = ErrorIfInvalid(SDL_AllocRW()); SetHandle(reg.handle); reg.SetHandle(IntPtr.Zero); Register(); }
public static RWOps From(IRWOps ops, int bufferSize = 1024 * 4) { return(new RWOpsFromInterface(ops, bufferSize)); }
public LogRWOps(IRWOps inner) { this.inner = inner; }