zserio.runtime.SizeOf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zserio-runtime Show documentation
Show all versions of zserio-runtime Show documentation
Java Runtime library for Zserio Serialization Framework
The newest version!
package zserio.runtime;
/**
* Interface for a size calculation for classes generated by Zserio.
*/
public interface SizeOf
{
/**
* Gets the bit length of object stored in bit stream.
*
* It is supposed that the current bit stream position is zero. The bit size of object can depend on
* current bit stream position because of alignment.
*
* @return Length of the object in number of bits.
*/
public int bitSizeOf();
/**
* Gets the bit length of object stored in bit stream.
*
* @param bitPosition Current bit stream position.
*
* @return Length of the object in number of bits.
*/
public int bitSizeOf(long bitPosition);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy