public static StatementPrepareOk Parse(ref PacketReader reader) { var prepareOk = new StatementPrepareOk(); if (reader.ReadByte() != Code) { throw new Exception("TODO"); } prepareOk.StatementId = reader.ReadInt16(); prepareOk.ColumnsCount = reader.ReadInt16(); var notused = reader.ReadLengthEncodedStringSegment(); prepareOk.WarningsCount = reader.ReadInt16(); return(prepareOk); }
public static StatementPrepareOk ReadStatementPrepareOk(ref PacketReader reader) { return(StatementPrepareOk.Parse(ref reader)); }