6465666768697071727374
s.writeInt(this.packetMarker, 1); s.writeInt(this.errorCode, 2); s.writeFixedLengthString(this.slash); s.writeFixedLengthString(this.sqlState); s.writeFixedLengthString(this.errorMessage); return s.toByteArray(); } /** * */
5556575859606162636465
*/ public byte[] getPacketBody() throws IOException { final XSerializer ps = new XSerializer(); ps.writeInt(this.command, 1); ps.writeFixedLengthString(this.databaseName); return ps.toByteArray(); } /** * */
*/ public byte[] getPacketBody() throws IOException { final XSerializer ps = new XSerializer(); ps.writeInt(this.command, 1); ps.writeFixedLengthString(this.sql); return ps.toByteArray(); } /** * */
ps.writeInt(this.command, 1); ps.writeLong(this.binlogPosition, 4); ps.writeInt(this.binlogFlag, 2); ps.writeLong(this.serverId, 4); ps.writeFixedLengthString(this.binlogFileName); return ps.toByteArray(); } /** * */
9596979899100101102103104105
while(true) { final int v = this.read(); if(v == 0) break; s.writeInt(v, 1); } return StringColumn.valueOf(s.toByteArray()); } public StringColumn readFixedLengthString(final int length) throws IOException { return StringColumn.valueOf(readBytes(length)); }