Examples of writeNullTerminatedString()


Examples of com.google.code.or.io.util.XSerializer.writeNullTerminatedString()

   *
   */
  public byte[] getPacketBody() {
    final XSerializer s = new XSerializer(128);
    s.writeInt(this.protocolVersion, 1);
    s.writeNullTerminatedString(this.serverVersion);
    s.writeLong(this.threadId, 4);
    s.writeNullTerminatedString(this.scramble1);
    s.writeInt(this.serverCapabilities, 2);
    s.writeInt(this.serverCollation, 1);
    s.writeInt(this.serverStatus, 2);
View Full Code Here

Examples of com.google.code.or.io.util.XSerializer.writeNullTerminatedString()

  public byte[] getPacketBody() {
    final XSerializer s = new XSerializer(128);
    s.writeInt(this.protocolVersion, 1);
    s.writeNullTerminatedString(this.serverVersion);
    s.writeLong(this.threadId, 4);
    s.writeNullTerminatedString(this.scramble1);
    s.writeInt(this.serverCapabilities, 2);
    s.writeInt(this.serverCollation, 1);
    s.writeInt(this.serverStatus, 2);
    s.writeInt(0, 13);
    s.writeNullTerminatedString(this.scramble2);
View Full Code Here

Examples of com.google.code.or.io.util.XSerializer.writeNullTerminatedString()

    s.writeNullTerminatedString(this.scramble1);
    s.writeInt(this.serverCapabilities, 2);
    s.writeInt(this.serverCollation, 1);
    s.writeInt(this.serverStatus, 2);
    s.writeInt(0, 13);
    s.writeNullTerminatedString(this.scramble2);
    s.writeNullTerminatedString(this.pluginProvidedData);
    return s.toByteArray();
  }
 
  /**
 
View Full Code Here

Examples of com.google.code.or.io.util.XSerializer.writeNullTerminatedString()

    s.writeInt(this.serverCapabilities, 2);
    s.writeInt(this.serverCollation, 1);
    s.writeInt(this.serverStatus, 2);
    s.writeInt(0, 13);
    s.writeNullTerminatedString(this.scramble2);
    s.writeNullTerminatedString(this.pluginProvidedData);
    return s.toByteArray();
  }
 
  /**
   *
 
View Full Code Here

Examples of com.google.code.or.io.util.XSerializer.writeNullTerminatedString()

    final XSerializer s = new XSerializer(64);
    s.writeInt(buildClientCapabilities(), 4);
    s.writeInt(this.maximumPacketLength, 4);
    s.writeInt(this.clientCollation > 0 ? this.clientCollation : ctx.getServerCollation(), 1);
    s.writeBytes((byte)0, 23); // Fixed, all 0
    s.writeNullTerminatedString(StringColumn.valueOf(this.user.getBytes(this.encoding)));
    s.writeInt(20, 1); // the length of the SHA1 encrypted password
    s.writeBytes(MySQLUtils.password41OrLater(this.password.getBytes(this.encoding), ctx.getScramble().getBytes(this.encoding)));
    if(this.initialSchema != null) s.writeNullTerminatedString(StringColumn.valueOf(this.initialSchema.getBytes(this.encoding)));
   
    //
View Full Code Here

Examples of com.google.code.or.io.util.XSerializer.writeNullTerminatedString()

    s.writeInt(this.clientCollation > 0 ? this.clientCollation : ctx.getServerCollation(), 1);
    s.writeBytes((byte)0, 23); // Fixed, all 0
    s.writeNullTerminatedString(StringColumn.valueOf(this.user.getBytes(this.encoding)));
    s.writeInt(20, 1); // the length of the SHA1 encrypted password
    s.writeBytes(MySQLUtils.password41OrLater(this.password.getBytes(this.encoding), ctx.getScramble().getBytes(this.encoding)));
    if(this.initialSchema != null) s.writeNullTerminatedString(StringColumn.valueOf(this.initialSchema.getBytes(this.encoding)));
   
    //
    final RawPacket request = new RawPacket();
    request.setSequence(1);
    request.setPacketBody(s.toByteArray());
View Full Code Here

Examples of com.google.code.or.io.util.XSerializer.writeNullTerminatedString()

    final XSerializer s = new XSerializer(64);
    s.writeInt(buildClientCapabilities(), 4);
    s.writeInt(this.maximumPacketLength, 4);
    s.writeInt(this.clientCollation > 0 ? this.clientCollation : ctx.getServerCollation(), 1);
    s.writeBytes((byte)0, 23); // Fixed, all 0
    s.writeNullTerminatedString(StringColumn.valueOf(this.user.getBytes(this.encoding)));
    s.writeInt(20, 1); // the length of the SHA1 encrypted password
    s.writeBytes(MySQLUtils.password41OrLater(this.password.getBytes(this.encoding), ctx.getScramble().getBytes(this.encoding)));
    if(this.initialSchema != null) s.writeNullTerminatedString(StringColumn.valueOf(this.initialSchema.getBytes(this.encoding)));
   
    //
View Full Code Here

Examples of com.google.code.or.io.util.XSerializer.writeNullTerminatedString()

    s.writeInt(this.clientCollation > 0 ? this.clientCollation : ctx.getServerCollation(), 1);
    s.writeBytes((byte)0, 23); // Fixed, all 0
    s.writeNullTerminatedString(StringColumn.valueOf(this.user.getBytes(this.encoding)));
    s.writeInt(20, 1); // the length of the SHA1 encrypted password
    s.writeBytes(MySQLUtils.password41OrLater(this.password.getBytes(this.encoding), ctx.getScramble().getBytes(this.encoding)));
    if(this.initialSchema != null) s.writeNullTerminatedString(StringColumn.valueOf(this.initialSchema.getBytes(this.encoding)));
   
    //
    final RawPacket request = new RawPacket();
    request.setSequence(1);
    request.setPacketBody(s.toByteArray());
View Full Code Here

Examples of com.google.code.or.io.util.XSerializer.writeNullTerminatedString()

   *
   */
  public byte[] getPacketBody() {
    final XSerializer s = new XSerializer(128);
    s.writeInt(this.protocolVersion, 1);
    s.writeNullTerminatedString(this.serverVersion);
    s.writeLong(this.threadId, 4);
    s.writeNullTerminatedString(this.scramble1);
    s.writeInt(this.serverCapabilities, 2);
    s.writeInt(this.serverCollation, 1);
    s.writeInt(this.serverStatus, 2);
View Full Code Here

Examples of com.google.code.or.io.util.XSerializer.writeNullTerminatedString()

  public byte[] getPacketBody() {
    final XSerializer s = new XSerializer(128);
    s.writeInt(this.protocolVersion, 1);
    s.writeNullTerminatedString(this.serverVersion);
    s.writeLong(this.threadId, 4);
    s.writeNullTerminatedString(this.scramble1);
    s.writeInt(this.serverCapabilities, 2);
    s.writeInt(this.serverCollation, 1);
    s.writeInt(this.serverStatus, 2);
    s.writeInt(0, 13);
    s.writeNullTerminatedString(this.scramble2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.