Esempio 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);
        }
Esempio 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));
        }
Esempio 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);
        }
Esempio 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;
        }
Esempio 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);
        }
Esempio 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);
        }