* @throws IOException
*/
public static void bytesToStruct(TStructIfc struct, byte[] b, int offset, int len) throws IOException
{
ByteArrayInputStream bytesIn = new ByteArrayInputStream(b, offset, len);
TDataInputStream istream = new TDataInputStream(bytesIn);
struct.readData(istream);
istream.close();
}