support connection stats since FastDFS Server v5.04

This commit is contained in:
Yu Qing
2014-12-07 14:01:57 +08:00
parent 2b7b8a6a7e
commit 1ce334de08
4 changed files with 41 additions and 3 deletions
+5
View File
@@ -62,6 +62,11 @@ public abstract class StructBase
return (int)ProtoCommon.buff2long(bs, offset + filedInfo.offset);
}
protected int int32Value(byte[] bs, int offset, FieldInfo filedInfo)
{
return ProtoCommon.buff2int(bs, offset + filedInfo.offset);
}
protected byte byteValue(byte[] bs, int offset, FieldInfo filedInfo)
{
return bs[offset + filedInfo.offset];