Package zmq.util
Class Wire
- java.lang.Object
-
- zmq.util.Wire
-
public class Wire extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateWire()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.StringextractString(java.nio.charset.Charset charset, java.nio.ByteBuffer buf, int offset, int length, int sizeOfSize)static java.lang.StringgetLongString(java.nio.ByteBuffer buf, int offset)static java.lang.StringgetLongString(java.nio.charset.Charset charset, java.nio.ByteBuffer buf, int offset)static java.lang.StringgetShortString(java.nio.ByteBuffer buf, int offset)static java.lang.StringgetShortString(java.nio.charset.Charset charset, java.nio.ByteBuffer buf, int offset)static intgetUInt16(byte[] bytes)static intgetUInt16(java.nio.ByteBuffer buf, int offset)static intgetUInt32(byte[] bytes, int offset)static intgetUInt32(java.nio.ByteBuffer buf)static intgetUInt32(java.nio.ByteBuffer buf, int offset)static intgetUInt32(Msg msg, int offset)static longgetUInt64(java.nio.ByteBuffer buf, int offset)static longgetUInt64(Msg msg, int offset)private static intgetUInt8(java.nio.ByteBuffer buf, int offset)static intputLongString(java.nio.ByteBuffer buf, java.lang.String value)static intputLongString(java.nio.charset.Charset charset, java.nio.ByteBuffer buf, java.lang.String value)static intputShortString(java.nio.ByteBuffer buf, java.lang.String value)static intputShortString(java.nio.charset.Charset charset, java.nio.ByteBuffer buf, java.lang.String value)static byte[]putUInt16(int value)static java.nio.ByteBufferputUInt16(java.nio.ByteBuffer buf, int value)static MsgputUInt16(Msg msg, int value)static byte[]putUInt32(int value)static java.nio.ByteBufferputUInt32(java.nio.ByteBuffer buf, int value)static MsgputUInt32(Msg msg, int value)static java.nio.ByteBufferputUInt64(java.nio.ByteBuffer buf, long value)private static java.nio.ByteBufferputUInt8(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)
-
-