class Decoder implements PacketDecoder<ResultFetchRowsAck> {
        @Override
        public ResultFetchRowsAck decode(NetInputStream in, int version) throws IOException {
            return new ResultFetchRowsAck(in);
        }
    }

    public static void writeRow(NetOutputStream out, Result result, int count) throws IOException {<FILL_FUNCTION_BODY>

        try {
            int visibleColumnCount = result.getVisibleColumnCount();
            for (int i = 0; i < count; i++) {
                if (result.next()) {
                    out.writeBoolean(true);
                    Value[] v = result.currentRow();
                    for (int j = 0; j < visibleColumnCount; j++) {
                        out.writeValue(v[j]);
                    }
                } else {
                    out.writeBoolean(false);
                    break;
                }
            }
        } catch (Throwable e) {
            // 如果取结果集的下一行记录时发生了异常，
            // 结果集包必须加一个结束标记，结果集包后面跟一个异常包。
            out.writeBoolean(false);
            throw DbException.convert(e);
        }
    
<no_super_class>