class NetworkReceive implements Receive {

    public int bytesRead() {
        if (buffer == null)
            return size.position();
        return buffer.position() + size.position();
    }

    public  NetworkReceive(String source, ByteBuffer buffer);
    public  NetworkReceive(String source);
    public  NetworkReceive(int maxSize, String source);
    public  NetworkReceive(int maxSize, String source, MemoryPool memoryPool);
    public  NetworkReceive();

}