public class Nshead extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BIGPIPE_MAGIC_NUM |
static int |
HEAD_SIZE |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
fillBuffer(ByteBuffer buffer) |
static Nshead |
fromBytes(byte[] bytes) |
static Nshead |
fromBytes(byte[] bytes,
int magicNumber) |
int |
getBodyLength() |
byte[] |
getBytes() |
short |
getId() |
int |
getLogId() |
int |
getMagicNumber() |
String |
getProvider() |
int |
getReserved() |
short |
getVersion() |
void |
setBodyLength(int bodylen) |
void |
setId(short id) |
void |
setLogId(int logId) |
void |
setMagicNumber(int magicNumber) |
void |
setProvider(String provider) |
void |
setReserved(int reserved) |
void |
setVersion(short version) |
public static final int HEAD_SIZE
public static final int BIGPIPE_MAGIC_NUM
public Nshead(String provider)
public static Nshead fromBytes(byte[] bytes)
public static Nshead fromBytes(byte[] bytes, int magicNumber)
public short getId()
public void setId(short id)
public short getVersion()
public void setVersion(short version)
public int getLogId()
public void setLogId(int logId)
public String getProvider()
public void setProvider(String provider)
public int getMagicNumber()
public void setMagicNumber(int magicNumber)
public int getReserved()
public void setReserved(int reserved)
public int getBodyLength()
public void setBodyLength(int bodylen)
public void fillBuffer(ByteBuffer buffer)
public byte[] getBytes()
Copyright © 2017. All rights reserved.