test_class.declarator: byteBuf
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ByteBuf byteBuf;
test_class.type: ByteBuf
test_class.var_name: byteBuf
test_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/test/java/org/apache/shardingsphere/db/protocol/mysql/payload/MySQLPacketPayloadTest.java
test_class.identifier: MySQLPacketPayloadTest
test_case.body: @Test
      public void assertWriteIntLenencWithFourBytes() {
          new MySQLPacketPayload(byteBuf).writeIntLenenc(new Double(Math.pow(2, 25)).longValue() - 1);
          verify(byteBuf).writeByte(0xfe);
          verify(byteBuf).writeLongLE(new Double(Math.pow(2, 25)).intValue() - 1);
      }
test_case.class_method_signature: MySQLPacketPayloadTest.assertWriteIntLenencWithFourBytes()
test_case.full_signature: @Test public void assertWriteIntLenencWithFourBytes()
test_case.identifier: assertWriteIntLenencWithFourBytes
test_case.invocations: writeIntLenenc longValue pow writeByte verify writeLongLE verify intValue pow
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertWriteIntLenencWithFourBytes()
focal_class.declarator: byteBuf
focal_class.modifier: private final
focal_class.original_string: private final ByteBuf byteBuf;
focal_class.type: ByteBuf
focal_class.var_name: byteBuf
focal_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/payload/MySQLPacketPayload.java
focal_class.identifier: MySQLPacketPayload
focal_class.interfaces: implements PacketPayload
focal_class.class_method_signature: MySQLPacketPayload.readInt1()
focal_class.full_signature: public int readInt1()
focal_class.identifier: readInt1
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int readInt1()
focal_class.class_method_signature: MySQLPacketPayload.writeInt1(final int value)
focal_class.full_signature: public void writeInt1(final int value)
focal_class.identifier: writeInt1
focal_class.modifiers: public
focal_class.parameters: (final int value)
focal_class.return: void
focal_class.signature: void writeInt1(final int value)
focal_class.class_method_signature: MySQLPacketPayload.readInt2()
focal_class.full_signature: public int readInt2()
focal_class.identifier: readInt2
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int readInt2()
focal_class.class_method_signature: MySQLPacketPayload.writeInt2(final int value)
focal_class.full_signature: public void writeInt2(final int value)
focal_class.identifier: writeInt2
focal_class.modifiers: public
focal_class.parameters: (final int value)
focal_class.return: void
focal_class.signature: void writeInt2(final int value)
focal_class.class_method_signature: MySQLPacketPayload.readInt3()
focal_class.full_signature: public int readInt3()
focal_class.identifier: readInt3
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int readInt3()
focal_class.class_method_signature: MySQLPacketPayload.writeInt3(final int value)
focal_class.full_signature: public void writeInt3(final int value)
focal_class.identifier: writeInt3
focal_class.modifiers: public
focal_class.parameters: (final int value)
focal_class.return: void
focal_class.signature: void writeInt3(final int value)
focal_class.class_method_signature: MySQLPacketPayload.readInt4()
focal_class.full_signature: public int readInt4()
focal_class.identifier: readInt4
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int readInt4()
focal_class.class_method_signature: MySQLPacketPayload.writeInt4(final int value)
focal_class.full_signature: public void writeInt4(final int value)
focal_class.identifier: writeInt4
focal_class.modifiers: public
focal_class.parameters: (final int value)
focal_class.return: void
focal_class.signature: void writeInt4(final int value)
focal_class.class_method_signature: MySQLPacketPayload.readInt6()
focal_class.full_signature: public long readInt6()
focal_class.identifier: readInt6
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long readInt6()
focal_class.class_method_signature: MySQLPacketPayload.writeInt6(final int value)
focal_class.full_signature: public void writeInt6(final int value)
focal_class.identifier: writeInt6
focal_class.modifiers: public
focal_class.parameters: (final int value)
focal_class.return: void
focal_class.signature: void writeInt6(final int value)
focal_class.class_method_signature: MySQLPacketPayload.readInt8()
focal_class.full_signature: public long readInt8()
focal_class.identifier: readInt8
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long readInt8()
focal_class.class_method_signature: MySQLPacketPayload.writeInt8(final long value)
focal_class.full_signature: public void writeInt8(final long value)
focal_class.identifier: writeInt8
focal_class.modifiers: public
focal_class.parameters: (final long value)
focal_class.return: void
focal_class.signature: void writeInt8(final long value)
focal_class.class_method_signature: MySQLPacketPayload.readIntLenenc()
focal_class.full_signature: public long readIntLenenc()
focal_class.identifier: readIntLenenc
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long readIntLenenc()
focal_class.class_method_signature: MySQLPacketPayload.writeIntLenenc(final long value)
focal_class.full_signature: public void writeIntLenenc(final long value)
focal_class.identifier: writeIntLenenc
focal_class.modifiers: public
focal_class.parameters: (final long value)
focal_class.return: void
focal_class.signature: void writeIntLenenc(final long value)
focal_class.class_method_signature: MySQLPacketPayload.readLong(final int length)
focal_class.full_signature: public long readLong(final int length)
focal_class.identifier: readLong
focal_class.modifiers: public
focal_class.parameters: (final int length)
focal_class.return: long
focal_class.signature: long readLong(final int length)
focal_class.class_method_signature: MySQLPacketPayload.readStringLenenc()
focal_class.full_signature: public String readStringLenenc()
focal_class.identifier: readStringLenenc
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String readStringLenenc()
focal_class.class_method_signature: MySQLPacketPayload.readStringLenencByBytes()
focal_class.full_signature: public byte[] readStringLenencByBytes()
focal_class.identifier: readStringLenencByBytes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] readStringLenencByBytes()
focal_class.class_method_signature: MySQLPacketPayload.writeStringLenenc(final String value)
focal_class.full_signature: public void writeStringLenenc(final String value)
focal_class.identifier: writeStringLenenc
focal_class.modifiers: public
focal_class.parameters: (final String value)
focal_class.return: void
focal_class.signature: void writeStringLenenc(final String value)
focal_class.class_method_signature: MySQLPacketPayload.writeBytesLenenc(final byte[] value)
focal_class.full_signature: public void writeBytesLenenc(final byte[] value)
focal_class.identifier: writeBytesLenenc
focal_class.modifiers: public
focal_class.parameters: (final byte[] value)
focal_class.return: void
focal_class.signature: void writeBytesLenenc(final byte[] value)
focal_class.class_method_signature: MySQLPacketPayload.readStringFix(final int length)
focal_class.full_signature: public String readStringFix(final int length)
focal_class.identifier: readStringFix
focal_class.modifiers: public
focal_class.parameters: (final int length)
focal_class.return: String
focal_class.signature: String readStringFix(final int length)
focal_class.class_method_signature: MySQLPacketPayload.readStringFixByBytes(final int length)
focal_class.full_signature: public byte[] readStringFixByBytes(final int length)
focal_class.identifier: readStringFixByBytes
focal_class.modifiers: public
focal_class.parameters: (final int length)
focal_class.return: byte[]
focal_class.signature: byte[] readStringFixByBytes(final int length)
focal_class.class_method_signature: MySQLPacketPayload.writeStringFix(final String value)
focal_class.full_signature: public void writeStringFix(final String value)
focal_class.identifier: writeStringFix
focal_class.modifiers: public
focal_class.parameters: (final String value)
focal_class.return: void
focal_class.signature: void writeStringFix(final String value)
focal_class.class_method_signature: MySQLPacketPayload.writeBytes(final byte[] value)
focal_class.full_signature: public void writeBytes(final byte[] value)
focal_class.identifier: writeBytes
focal_class.modifiers: public
focal_class.parameters: (final byte[] value)
focal_class.return: void
focal_class.signature: void writeBytes(final byte[] value)
focal_class.class_method_signature: MySQLPacketPayload.readStringVar()
focal_class.full_signature: public String readStringVar()
focal_class.identifier: readStringVar
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String readStringVar()
focal_class.class_method_signature: MySQLPacketPayload.writeStringVar(final String value)
focal_class.full_signature: public void writeStringVar(final String value)
focal_class.identifier: writeStringVar
focal_class.modifiers: public
focal_class.parameters: (final String value)
focal_class.return: void
focal_class.signature: void writeStringVar(final String value)
focal_class.class_method_signature: MySQLPacketPayload.readStringNul()
focal_class.full_signature: public String readStringNul()
focal_class.identifier: readStringNul
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String readStringNul()
focal_class.class_method_signature: MySQLPacketPayload.readStringNulByBytes()
focal_class.full_signature: public byte[] readStringNulByBytes()
focal_class.identifier: readStringNulByBytes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] readStringNulByBytes()
focal_class.class_method_signature: MySQLPacketPayload.writeStringNul(final String value)
focal_class.full_signature: public void writeStringNul(final String value)
focal_class.identifier: writeStringNul
focal_class.modifiers: public
focal_class.parameters: (final String value)
focal_class.return: void
focal_class.signature: void writeStringNul(final String value)
focal_class.class_method_signature: MySQLPacketPayload.readStringEOFByBytes()
focal_class.full_signature: public byte[] readStringEOFByBytes()
focal_class.identifier: readStringEOFByBytes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] readStringEOFByBytes()
focal_class.class_method_signature: MySQLPacketPayload.readStringEOF()
focal_class.full_signature: public String readStringEOF()
focal_class.identifier: readStringEOF
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String readStringEOF()
focal_class.class_method_signature: MySQLPacketPayload.writeStringEOF(final String value)
focal_class.full_signature: public void writeStringEOF(final String value)
focal_class.identifier: writeStringEOF
focal_class.modifiers: public
focal_class.parameters: (final String value)
focal_class.return: void
focal_class.signature: void writeStringEOF(final String value)
focal_class.class_method_signature: MySQLPacketPayload.skipReserved(final int length)
focal_class.full_signature: public void skipReserved(final int length)
focal_class.identifier: skipReserved
focal_class.modifiers: public
focal_class.parameters: (final int length)
focal_class.return: void
focal_class.signature: void skipReserved(final int length)
focal_class.class_method_signature: MySQLPacketPayload.writeReserved(final int length)
focal_class.full_signature: public void writeReserved(final int length)
focal_class.identifier: writeReserved
focal_class.modifiers: public
focal_class.parameters: (final int length)
focal_class.return: void
focal_class.signature: void writeReserved(final int length)
focal_class.class_method_signature: MySQLPacketPayload.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_method.body: public void writeIntLenenc(final long value) {
          if (value < 0xfb) {
              byteBuf.writeByte((int) value);
              return;
          }
          if (value < Math.pow(2, 16)) {
              byteBuf.writeByte(0xfc);
              byteBuf.writeShortLE((int) value);
              return;
          }
          if (value < Math.pow(2, 24)) {
              byteBuf.writeByte(0xfd);
              byteBuf.writeMediumLE((int) value);
              return;
          }
          byteBuf.writeByte(0xfe);
          byteBuf.writeLongLE(value);
      }
focal_method.class_method_signature: MySQLPacketPayload.writeIntLenenc(final long value)
focal_method.full_signature: public void writeIntLenenc(final long value)
focal_method.identifier: writeIntLenenc
focal_method.invocations: writeByte pow writeByte writeShortLE pow writeByte writeMediumLE writeByte writeLongLE
focal_method.modifiers: public
focal_method.parameters: (final long value)
focal_method.return: void
focal_method.signature: void writeIntLenenc(final long value)