Java Code Examples for com.alibaba.dubbo.remoting.buffer.ChannelBuffer#setBytes()
The following examples show how to use
com.alibaba.dubbo.remoting.buffer.ChannelBuffer#setBytes() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NettyBackedChannelBuffer.java From dubbo-2.6.5 with Apache License 2.0 | 5 votes |
@Override public void readBytes(ChannelBuffer dst, int dstIndex, int length) { // careful if (readableBytes() < length) { throw new IndexOutOfBoundsException(); } byte[] data = new byte[length]; buffer.readBytes(data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 2
Source File: NettyBackedChannelBuffer.java From dubbo-remoting-netty4 with Apache License 2.0 | 5 votes |
@Override public void readBytes(ChannelBuffer dst, int dstIndex, int length) { // careful if (readableBytes() < length) { throw new IndexOutOfBoundsException(); } byte[] data = new byte[length]; buffer.readBytes(data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 3
Source File: NettyBackedChannelBuffer.java From dubbo-remoting-netty4 with Apache License 2.0 | 5 votes |
@Override public void getBytes(int index, ChannelBuffer dst, int dstIndex, int length) { // careful byte[] data = new byte[length]; buffer.getBytes(index, data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 4
Source File: NettyBackedChannelBuffer.java From dubbox with Apache License 2.0 | 5 votes |
@Override public void readBytes(ChannelBuffer dst, int dstIndex, int length) { // careful if (readableBytes() < length) { throw new IndexOutOfBoundsException(); } byte[] data = new byte[length]; buffer.readBytes(data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 5
Source File: NettyBackedChannelBuffer.java From dubbox with Apache License 2.0 | 5 votes |
@Override public void getBytes(int index, ChannelBuffer dst, int dstIndex, int length) { // careful byte[] data = new byte[length]; buffer.getBytes(index, data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 6
Source File: NettyBackedChannelBuffer.java From dubbox with Apache License 2.0 | 5 votes |
@Override public void readBytes(ChannelBuffer dst, int dstIndex, int length) { // careful if (readableBytes() < length) { throw new IndexOutOfBoundsException(); } byte[] data = new byte[length]; buffer.readBytes(data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 7
Source File: NettyBackedChannelBuffer.java From dubbox with Apache License 2.0 | 5 votes |
@Override public void getBytes(int index, ChannelBuffer dst, int dstIndex, int length) { // careful byte[] data = new byte[length]; buffer.getBytes(index, data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 8
Source File: NettyBackedChannelBuffer.java From dubbo3 with Apache License 2.0 | 5 votes |
@Override public void readBytes(ChannelBuffer dst, int dstIndex, int length) { // careful if (readableBytes() < length) { throw new IndexOutOfBoundsException(); } byte[] data = new byte[length]; buffer.readBytes(data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 9
Source File: NettyBackedChannelBuffer.java From dubbo3 with Apache License 2.0 | 5 votes |
@Override public void getBytes(int index, ChannelBuffer dst, int dstIndex, int length) { // careful byte[] data = new byte[length]; buffer.getBytes(index, data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 10
Source File: NettyBackedChannelBuffer.java From dubbo3 with Apache License 2.0 | 5 votes |
public void readBytes(ChannelBuffer dst, int dstIndex, int length) { // careful if (readableBytes() < length) { throw new IndexOutOfBoundsException(); } byte[] data = new byte[length]; buffer.readBytes(data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 11
Source File: NettyBackedChannelBuffer.java From dubbox-hystrix with Apache License 2.0 | 5 votes |
@Override public void readBytes(ChannelBuffer dst, int dstIndex, int length) { // careful if (readableBytes() < length) { throw new IndexOutOfBoundsException(); } byte[] data = new byte[length]; buffer.readBytes(data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 12
Source File: NettyBackedChannelBuffer.java From dubbox-hystrix with Apache License 2.0 | 5 votes |
@Override public void getBytes(int index, ChannelBuffer dst, int dstIndex, int length) { // careful byte[] data = new byte[length]; buffer.getBytes(index, data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 13
Source File: NettyBackedChannelBuffer.java From dubbox with Apache License 2.0 | 5 votes |
@Override public void readBytes(ChannelBuffer dst, int dstIndex, int length) { // careful if (readableBytes() < length) { throw new IndexOutOfBoundsException(); } byte[] data = new byte[length]; buffer.readBytes(data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 14
Source File: NettyBackedChannelBuffer.java From dubbox with Apache License 2.0 | 5 votes |
@Override public void getBytes(int index, ChannelBuffer dst, int dstIndex, int length) { // careful byte[] data = new byte[length]; buffer.getBytes(index, data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 15
Source File: NettyBackedChannelBuffer.java From dubbox with Apache License 2.0 | 5 votes |
@Override public void readBytes(ChannelBuffer dst, int dstIndex, int length) { // careful if (readableBytes() < length) { throw new IndexOutOfBoundsException(); } byte[] data = new byte[length]; buffer.readBytes(data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 16
Source File: NettyBackedChannelBuffer.java From dubbox with Apache License 2.0 | 5 votes |
@Override public void getBytes(int index, ChannelBuffer dst, int dstIndex, int length) { // careful byte[] data = new byte[length]; buffer.getBytes(index, data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 17
Source File: NettyBackedChannelBuffer.java From dubbo-2.6.5 with Apache License 2.0 | 5 votes |
@Override public void readBytes(ChannelBuffer dst, int dstIndex, int length) { // careful if (readableBytes() < length) { throw new IndexOutOfBoundsException(); } byte[] data = new byte[length]; buffer.readBytes(data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 18
Source File: NettyBackedChannelBuffer.java From dubbo-2.6.5 with Apache License 2.0 | 5 votes |
@Override public void getBytes(int index, ChannelBuffer dst, int dstIndex, int length) { // careful byte[] data = new byte[length]; buffer.getBytes(index, data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 19
Source File: NettyBackedChannelBuffer.java From dubbo-2.6.5 with Apache License 2.0 | 5 votes |
@Override public void getBytes(int index, ChannelBuffer dst, int dstIndex, int length) { // careful byte[] data = new byte[length]; buffer.getBytes(index, data, 0, length); dst.setBytes(dstIndex, data, 0, length); }
Example 20
Source File: NettyBackedChannelBuffer.java From dubbo3 with Apache License 2.0 | 4 votes |
public void getBytes(int index, ChannelBuffer dst, int dstIndex, int length) { // careful byte[] data = new byte[length]; buffer.getBytes(index, data, 0, length); dst.setBytes(dstIndex, data, 0, length); }