org.csource.fastdfs
Class ProtoStructDecoder<T extends StructBase>

java.lang.Object
  extended by org.csource.fastdfs.ProtoStructDecoder<T>

public class ProtoStructDecoder<T extends StructBase>
extends java.lang.Object

C struct body decoder

Version:
Version 1.17
Author:
Happy Fish / YuQing

Constructor Summary
ProtoStructDecoder()
          Constructor
 
Method Summary
 T[] decode(byte[] bs, java.lang.Class<T> clazz, int fieldsTotalSize)
          decode byte buffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtoStructDecoder

public ProtoStructDecoder()
Constructor

Method Detail

decode

public T[] decode(byte[] bs,
                  java.lang.Class<T> clazz,
                  int fieldsTotalSize)
                              throws java.lang.Exception
decode byte buffer

Throws:
java.lang.Exception