com.objsys.asn1j.runtime
Class Asn1PerUtil

java.lang.Object
  extended by com.objsys.asn1j.runtime.Asn1PerUtil

public class Asn1PerUtil
extends java.lang.Object

This class contains general purpose static utility functions related to PER encoding/decoding


Constructor Summary
Asn1PerUtil()
           
 
Method Summary
static int getMsgBitCnt(int byteCount, int bitOffset)
          This method returns the number of bits in an encoded PER message buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Asn1PerUtil

public Asn1PerUtil()
Method Detail

getMsgBitCnt

public static int getMsgBitCnt(int byteCount,
                               int bitOffset)
This method returns the number of bits in an encoded PER message buffer.

Parameters:
byteCount - Number of full bytes in message
bitOffset - Offset to current bit in last byte ((7 - 0) or -1 if no bits used).
Returns:
Count of bits in encoded message