List of usage examples for org.apache.thrift.transport TNonblockingTransport write
public abstract int write(ByteBuffer buffer) throws IOException;
From source file:com.thinkaurelius.thrift.util.mem.Buffer.java
License:Apache License
public int writeTo(TNonblockingTransport transport, int start, int count) throws IOException { ByteBuffer dup = buffer.duplicate(); dup.position(start).limit(start + count); return transport.write(dup); }