ASN1C C# Runtime Library  7.8
Static Public Member Functions | List of all members
Asn1PerUtil Class Reference

Static Public Member Functions

static int GetMsgBitCnt (int byteCount, int bitOffset)
 

Detailed Description

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

Member Function Documentation

◆ GetMsgBitCnt()

static int GetMsgBitCnt ( int  byteCount,
int  bitOffset 
)
static

This method returns the number of bits in an encoded PER message buffer.

Parameters
byteCountNumber of full bytes in message
bitOffsetOffset to current bit in last byte ((7 - 0) or -1 if no bits used).
Returns
Count of bits in encoded message