public class Msg extends Object
Modifier and Type | Field and Description |
---|---|
static int |
COMMAND |
static int |
IDENTITY |
static int |
MORE |
static int |
SHARED |
Constructor and Description |
---|
Msg() |
Msg(byte[] src) |
Msg(ByteBuffer src) |
Msg(int capacity) |
Msg(Msg m) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
buf() |
boolean |
check() |
byte[] |
data() |
int |
flags() |
byte |
get() |
byte |
get(int index) |
int |
getBytes(int index,
byte[] dst,
int off,
int len) |
int |
getBytes(int index,
ByteBuffer bb,
int len) |
boolean |
hasMore() |
void |
initDelimiter() |
boolean |
isDelimiter() |
boolean |
isIdentity() |
Msg |
put(byte b) |
Msg |
put(byte[] src) |
Msg |
put(byte[] src,
int off,
int len) |
Msg |
put(ByteBuffer src) |
Msg |
put(int index,
byte b) |
void |
resetFlags(int f) |
void |
setFlags(int flags) |
int |
size() |
String |
toString() |
public static final int MORE
public static final int COMMAND
public static final int IDENTITY
public static final int SHARED
public Msg()
public Msg(int capacity)
public Msg(byte[] src)
public Msg(ByteBuffer src)
public Msg(Msg m)
public boolean isIdentity()
public boolean isDelimiter()
public boolean check()
public int flags()
public boolean hasMore()
public void setFlags(int flags)
public void initDelimiter()
public byte[] data()
public ByteBuffer buf()
public int size()
public void resetFlags(int f)
public byte get()
public byte get(int index)
public Msg put(byte b)
public Msg put(int index, byte b)
public Msg put(byte[] src)
public Msg put(byte[] src, int off, int len)
public Msg put(ByteBuffer src)
public int getBytes(int index, byte[] dst, int off, int len)
public int getBytes(int index, ByteBuffer bb, int len)
Copyright © 2023. All rights reserved.