All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zserio.runtime.SizeOf Maven / Gradle / Ivy

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