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