Exemple #1
0
        public bool binbuf_return_own_no_longer_own()
        {
            bool r = !binbuf_return_own_binbuf.Own;

            binbuf_return_own_binbuf.Dispose();
            binbuf_return_own_binbuf = null;
            return(r);
        }
Exemple #2
0
        public bool binbuf_in_own_still_usable()
        {
            bool r = binbuf_in_own_binbuf.GetBytes().SequenceEqual(new byte[] { 43, 42, 0x0, 0x2A, 0x42, 33 });

            r = r && binbuf_in_own_binbuf.Own;

            binbuf_in_own_binbuf.Dispose();
            binbuf_in_own_binbuf = null;

            return(r);
        }
Exemple #3
0
        public bool binbuf_return_still_usable()
        {
            bool r = binbuf_return_binbuf.GetBytes().SequenceEqual(BaseSequence.Values());

            r = r && binbuf_return_binbuf.Own;

            binbuf_return_binbuf.Dispose();
            binbuf_return_binbuf = null;

            return(r);
        }
Exemple #4
0
        // //
        //
        override public bool EinaBinbufIn(Eina.Binbuf binbuf)
        {
            binbuf_in_flag = true;

            bool r = binbuf.GetBytes().SequenceEqual(BaseSequence.Values());

            r = r && !binbuf.Own;

            binbuf.Insert(42, 0);
            binbuf.Insert(43, 0);
            binbuf.Append(33);

            binbuf.Dispose();

            return(r);
        }