Exemplo n.º 1
0
        public void BBwrapThrow()
        {
            byte[] myLovelyData = PrepareData();

            DirectByteBuffer buffer = new DirectByteBuffer(myLovelyData);

            buffer.position(myLovelyData.Length - 1);
            buffer.put(0xEE);
            buffer.put(0xEE);
        }
Exemplo n.º 2
0
        private static ByteBuffer xx()
        {
            byte[] myLovelyData = new byte[1000 * 1000 * 10];

            DirectByteBuffer buffer = new DirectByteBuffer(myLovelyData);

            buffer.position(myLovelyData.Length - 1);
            buffer.put(0xEE);

            return(Bridge.Cast <ByteBuffer>(buffer));
        }
Exemplo n.º 3
0
        private ByteBuffer a(int size)
        {
            var sharedBuffer = new byte[size];
            var buffer       = new DirectByteBuffer(sharedBuffer);

            buffer.position(size - 1);
            buffer.put(0xEE);
            ByteBuffer byteBuffer = Bridge.Cast <ByteBuffer>(buffer);

            return(byteBuffer);
        }
Exemplo n.º 4
0
        private ByteBuffer a(int size)
        {
            var sharedBuffer = new byte[size];
            var buffer = new DirectByteBuffer(sharedBuffer);
            buffer.position(size - 1);
            buffer.put(0xEE);
            ByteBuffer byteBuffer = Bridge.Cast<ByteBuffer>(buffer);

            return byteBuffer;
        }
Exemplo n.º 5
0
        public void BBwrapThrow()
        {
            byte[] myLovelyData = PrepareData();

            DirectByteBuffer buffer = new DirectByteBuffer(myLovelyData);

            buffer.position(myLovelyData.Length - 1);
            buffer.put(0xEE);
            buffer.put(0xEE);
        }
Exemplo n.º 6
0
        private static ByteBuffer xx()
        {
            byte[] myLovelyData = new byte[1000*1000*10];

            DirectByteBuffer buffer = new DirectByteBuffer(myLovelyData);

            buffer.position(myLovelyData.Length - 1);
            buffer.put(0xEE);

            return Bridge.Cast<ByteBuffer>(buffer);
        }