Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public static RWOps From(IRWOps ops, int bufferSize = 1024 * 4)
 {
     return(new RWOpsFromInterface(ops, bufferSize));
 }
Esempio n. 3
0
 public LogRWOps(IRWOps inner)
 {
     this.inner = inner;
 }