JavaScript is disabled on your browser.
javolution.io

Class Struct.Member

    • Constructor Detail

      • Struct.Member

        protected Struct.Member(int bitLength,
         int wordSize)
        Base constructor for custom member types. The word size can be zero, in which case the offset() of the member does not change, only bitIndex() is incremented.
        Parameters:
        bitLength - the number of bits or 0 to force next member on next word boundary.
        wordSize - the word size in bytes used when accessing this member data or 0 if the data is accessed at the bit level.
    • Method Detail

      • struct

        public final Struct struct()
        Returns the outer struct container.
        Returns:
        the outer struct.
      • offset

        public final int offset()
        Returns the byte offset of this member in its struct. Equivalent to C/C++ offsetof(struct(), this)
        Returns:
        the offset of this member in the Struct.
      • bitIndex

        public final int bitIndex()
        Holds the bit offset of this member (if any). The actual position of the bits data depends upon the endianess and the word size.
      • bitLength

        public final int bitLength()
        Returns the number of bits in this member. Can be zero if this member is used to force the next member to the next word boundary.
        Returns:
        the number of bits in the member.

Copyright © 2005-2013 Javolution. All Rights Reserved.

AltStyle によって変換されたページ (->オリジナル) /