class PostgreSQLUnspecifiedBinaryProtocolValue implements PostgreSQLBinaryProtocolValue {

    @Override
    public Object read(final PostgreSQLPacketPayload payload) {
        payload.getByteBuf().readerIndex(payload.getByteBuf().readerIndex() - 4);
        byte[] bytes = new byte[payload.readInt4()];
        payload.getByteBuf().readBytes(bytes);
        String result = new String(bytes);
        return new PostgreSQLTypeUnspecifiedSQLParameter(result);
    }

}