Package zmq.util

Class Wire

java.lang.Object
zmq.util.Wire

public class Wire extends Object
  • Constructor Details

    • Wire

      private Wire()
  • Method Details

    • getUInt8

      private static int getUInt8(ByteBuffer buf, int offset)
    • putUInt8

      private static ByteBuffer putUInt8(ByteBuffer buf, int value)
    • getUInt16

      public static int getUInt16(byte[] bytes)
    • getUInt16

      public static int getUInt16(ByteBuffer buf, int offset)
    • putUInt16

      public static byte[] putUInt16(int value)
    • putUInt16

      public static Msg putUInt16(Msg msg, int value)
    • putUInt16

      public static ByteBuffer putUInt16(ByteBuffer buf, int value)
    • getUInt32

      public static int getUInt32(ByteBuffer buf)
    • getUInt32

      public static int getUInt32(ByteBuffer buf, int offset)
    • getUInt32

      public static int getUInt32(Msg msg, int offset)
    • getUInt32

      public static int getUInt32(byte[] bytes, int offset)
    • putUInt32

      public static ByteBuffer putUInt32(ByteBuffer buf, int value)
    • putUInt32

      public static byte[] putUInt32(int value)
    • putUInt32

      public static Msg putUInt32(Msg msg, int value)
    • putUInt64

      public static ByteBuffer putUInt64(ByteBuffer buf, long value)
    • getUInt64

      public static long getUInt64(ByteBuffer buf, int offset)
    • getUInt64

      public static long getUInt64(Msg msg, int offset)
    • putShortString

      public static int putShortString(ByteBuffer buf, String value)
    • getShortString

      public static String getShortString(ByteBuffer buf, int offset)
    • putShortString

      public static int putShortString(Charset charset, ByteBuffer buf, String value)
    • getShortString

      public static String getShortString(Charset charset, ByteBuffer buf, int offset)
    • putLongString

      public static int putLongString(ByteBuffer buf, String value)
    • getLongString

      public static String getLongString(ByteBuffer buf, int offset)
    • putLongString

      public static int putLongString(Charset charset, ByteBuffer buf, String value)
    • getLongString

      public static String getLongString(Charset charset, ByteBuffer buf, int offset)
    • extractString

      private static String extractString(Charset charset, ByteBuffer buf, int offset, int length, int sizeOfSize)