Class PacketEncoder

java.lang.Object
com.corundumstudio.socketio.protocol.PacketEncoder

public class PacketEncoder extends Object
  • Constructor Details

  • Method Details

    • getJsonSupport

      public JsonSupport getJsonSupport()
    • allocateBuffer

      public io.netty.buffer.ByteBuf allocateBuffer(io.netty.buffer.ByteBufAllocator allocator)
    • encodeJsonP

      public void encodeJsonP(Integer jsonpIndex, Queue<Packet> packets, io.netty.buffer.ByteBuf out, io.netty.buffer.ByteBufAllocator allocator, int limit) throws IOException
      Throws:
      IOException
    • encodePackets

      public void encodePackets(Queue<Packet> packets, io.netty.buffer.ByteBuf buffer, io.netty.buffer.ByteBufAllocator allocator, int limit) throws IOException
      Throws:
      IOException
    • toChars

      public static byte[] toChars(long i)
    • longToBytes

      public static byte[] longToBytes(long number)
    • encodePacket

      public void encodePacket(Packet packet, io.netty.buffer.ByteBuf buffer, io.netty.buffer.ByteBufAllocator allocator, boolean binary) throws IOException
      Throws:
      IOException
    • find

      public static int find(io.netty.buffer.ByteBuf buffer, io.netty.buffer.ByteBuf searchValue)