class DataRow extends PGMessage {

    public static DataRow loadFromPacket(byte[] packet) {
        PGProto proto = new PGProto(packet, 5);
        int colCount = proto.readInt16();
        if (colCount <= 0) {
            return new DataRow();
        }
        PGCol[] cols = new PGCol[colCount];
        for (int i = 0; i < colCount; i++) {
            int colDataLen = proto.readInt32();
            if (colDataLen < 0) {
                cols[i] = new PGCol();
                continue;
            }
            cols[i] = new PGCol(proto.readBytes(colDataLen));
        }
        return new DataRow(cols);
    }

    public  DataRow();
    public  DataRow(PGCol[] cols);

}