Beispiel #1
0
        public void BBwrapThrow()
        {
            byte[] myLovelyData = PrepareData();

            DirectByteBuffer buffer = new DirectByteBuffer(myLovelyData);

            buffer.position(myLovelyData.Length - 1);
            buffer.put(0xEE);
            buffer.put(0xEE);
        }
Beispiel #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));
        }
Beispiel #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);
        }
Beispiel #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;
        }
Beispiel #5
0
        public void BBwrapThrow()
        {
            byte[] myLovelyData = PrepareData();

            DirectByteBuffer buffer = new DirectByteBuffer(myLovelyData);

            buffer.position(myLovelyData.Length - 1);
            buffer.put(0xEE);
            buffer.put(0xEE);
        }
Beispiel #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);
        }