Package zmq.util
Class Wire
- java.lang.Object
-
- zmq.util.Wire
-
public class Wire extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Wire()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
extractString(java.nio.charset.Charset charset, java.nio.ByteBuffer buf, int offset, int length, int sizeOfSize)
static java.lang.String
getLongString(java.nio.ByteBuffer buf, int offset)
static java.lang.String
getLongString(java.nio.charset.Charset charset, java.nio.ByteBuffer buf, int offset)
static java.lang.String
getShortString(java.nio.ByteBuffer buf, int offset)
static java.lang.String
getShortString(java.nio.charset.Charset charset, java.nio.ByteBuffer buf, int offset)
static int
getUInt16(byte[] bytes)
static int
getUInt16(java.nio.ByteBuffer buf, int offset)
static int
getUInt32(byte[] bytes, int offset)
static int
getUInt32(java.nio.ByteBuffer buf)
static int
getUInt32(java.nio.ByteBuffer buf, int offset)
static int
getUInt32(Msg msg, int offset)
static long
getUInt64(java.nio.ByteBuffer buf, int offset)
static long
getUInt64(Msg msg, int offset)
private static int
getUInt8(java.nio.ByteBuffer buf, int offset)
static int
putLongString(java.nio.ByteBuffer buf, java.lang.String value)
static int
putLongString(java.nio.charset.Charset charset, java.nio.ByteBuffer buf, java.lang.String value)
static int
putShortString(java.nio.ByteBuffer buf, java.lang.String value)
static int
putShortString(java.nio.charset.Charset charset, java.nio.ByteBuffer buf, java.lang.String value)
static byte[]
putUInt16(int value)
static java.nio.ByteBuffer
putUInt16(java.nio.ByteBuffer buf, int value)
static Msg
putUInt16(Msg msg, int value)
static byte[]
putUInt32(int value)
static java.nio.ByteBuffer
putUInt32(java.nio.ByteBuffer buf, int value)
static Msg
putUInt32(Msg msg, int value)
static java.nio.ByteBuffer
putUInt64(java.nio.ByteBuffer buf, long value)
private static java.nio.ByteBuffer
putUInt8(java.nio.ByteBuffer buf, int value)
-
-
-
Method Detail
-
getUInt8
private static int getUInt8(java.nio.ByteBuffer buf, int offset)
-
putUInt8
private static java.nio.ByteBuffer putUInt8(java.nio.ByteBuffer buf, int value)
-
getUInt16
public static int getUInt16(byte[] bytes)
-
getUInt16
public static int getUInt16(java.nio.ByteBuffer buf, int offset)
-
putUInt16
public static byte[] putUInt16(int value)
-
putUInt16
public static java.nio.ByteBuffer putUInt16(java.nio.ByteBuffer buf, int value)
-
getUInt32
public static int getUInt32(java.nio.ByteBuffer buf)
-
getUInt32
public static int getUInt32(java.nio.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 java.nio.ByteBuffer putUInt32(java.nio.ByteBuffer buf, int value)
-
putUInt32
public static byte[] putUInt32(int value)
-
putUInt64
public static java.nio.ByteBuffer putUInt64(java.nio.ByteBuffer buf, long value)
-
getUInt64
public static long getUInt64(java.nio.ByteBuffer buf, int offset)
-
getUInt64
public static long getUInt64(Msg msg, int offset)
-
putShortString
public static int putShortString(java.nio.ByteBuffer buf, java.lang.String value)
-
getShortString
public static java.lang.String getShortString(java.nio.ByteBuffer buf, int offset)
-
putShortString
public static int putShortString(java.nio.charset.Charset charset, java.nio.ByteBuffer buf, java.lang.String value)
-
getShortString
public static java.lang.String getShortString(java.nio.charset.Charset charset, java.nio.ByteBuffer buf, int offset)
-
putLongString
public static int putLongString(java.nio.ByteBuffer buf, java.lang.String value)
-
getLongString
public static java.lang.String getLongString(java.nio.ByteBuffer buf, int offset)
-
putLongString
public static int putLongString(java.nio.charset.Charset charset, java.nio.ByteBuffer buf, java.lang.String value)
-
getLongString
public static java.lang.String getLongString(java.nio.charset.Charset charset, java.nio.ByteBuffer buf, int offset)
-
extractString
private static java.lang.String extractString(java.nio.charset.Charset charset, java.nio.ByteBuffer buf, int offset, int length, int sizeOfSize)
-
-