Package zmq.util
Class Wire
java.lang.Object
zmq.util.Wire
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
extractString
(Charset charset, ByteBuffer buf, int offset, int length, int sizeOfSize) static String
getLongString
(ByteBuffer buf, int offset) static String
getLongString
(Charset charset, ByteBuffer buf, int offset) static String
getShortString
(ByteBuffer buf, int offset) static String
getShortString
(Charset charset, ByteBuffer buf, int offset) static int
getUInt16
(byte[] bytes) static int
getUInt16
(ByteBuffer buf, int offset) static int
getUInt32
(byte[] bytes, int offset) static int
getUInt32
(ByteBuffer buf) static int
getUInt32
(ByteBuffer buf, int offset) static int
static long
getUInt64
(ByteBuffer buf, int offset) static long
private static int
getUInt8
(ByteBuffer buf, int offset) static int
putLongString
(ByteBuffer buf, String value) static int
putLongString
(Charset charset, ByteBuffer buf, String value) static int
putShortString
(ByteBuffer buf, String value) static int
putShortString
(Charset charset, ByteBuffer buf, String value) static byte[]
putUInt16
(int value) static ByteBuffer
putUInt16
(ByteBuffer buf, int value) static Msg
static byte[]
putUInt32
(int value) static ByteBuffer
putUInt32
(ByteBuffer buf, int value) static Msg
static ByteBuffer
putUInt64
(ByteBuffer buf, long value) private static ByteBuffer
putUInt8
(ByteBuffer buf, int value)
-
Constructor Details
-
Wire
private Wire()
-
-
Method Details
-
getUInt8
-
putUInt8
-
getUInt16
public static int getUInt16(byte[] bytes) -
getUInt16
-
putUInt16
public static byte[] putUInt16(int value) -
putUInt16
-
putUInt16
-
getUInt32
-
getUInt32
-
getUInt32
-
getUInt32
public static int getUInt32(byte[] bytes, int offset) -
putUInt32
-
putUInt32
public static byte[] putUInt32(int value) -
putUInt32
-
putUInt64
-
getUInt64
-
getUInt64
-
putShortString
-
getShortString
-
putShortString
-
getShortString
-
putLongString
-
getLongString
-
putLongString
-
getLongString
-
extractString
private static String extractString(Charset charset, ByteBuffer buf, int offset, int length, int sizeOfSize)
-