com.baidu.driver4j.bns
类 BNSHead

java.lang.Object
  继承者 com.baidu.driver4j.bns.BNSHead

public class BNSHead
extends Object

BNS request head message

从以下版本开始:
1.0.0
作者:
xiemalin

字段摘要
 int body_len
           
static int HEAD_LEN
           
 short id
           
 int log_id
           
 int magic_num
           
static int MAGIC_NUM
           
static int MAX_BODY_LEN
           
 int reserved
           
 short version
           
 
构造方法摘要
BNSHead()
           
 
方法摘要
static BNSHead fromBytes(byte[] bytes)
          Convert bytes to BNSHead instance.
 byte[] toBytes()
          Convert to byte array Only support Linux on x86 with little endian
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

MAGIC_NUM

public static final int MAGIC_NUM
另请参见:
常量字段值

HEAD_LEN

public static final int HEAD_LEN
另请参见:
常量字段值

MAX_BODY_LEN

public static final int MAX_BODY_LEN
另请参见:
常量字段值

id

public short id

version

public short version

log_id

public int log_id

magic_num

public int magic_num

reserved

public int reserved

body_len

public int body_len
构造方法详细信息

BNSHead

public BNSHead()
方法详细信息

fromBytes

public static BNSHead fromBytes(byte[] bytes)
Convert bytes to BNSHead instance.

参数:
bytes - byte array
返回:
BNSHead instance.

toBytes

public byte[] toBytes()
Convert to byte array Only support Linux on x86 with little endian

返回:
byte array


Copyright © 2016. All rights reserved.