Class BinaryLoadItem

    • Constructor Detail

      • BinaryLoadItem

        public BinaryLoadItem()
    • Method Detail

      • channelCount

        public final int channelCount()
        Specified by:
        channelCount in class Binary
      • hasData

        public final boolean hasData()
        Some binary entries serve as a skip entry, so that an entry for a particular object id already exists. Naturally, those entries don't have data then, which must be checked (be checkable) later on.
        Returns:
        whether this instances carries (actually "knows") binary build data or not.
      • modifyLoadItem

        public final void modifyLoadItem​(long entityContentAddress,
                                         long entityTotalLength,
                                         long entityTypeId,
                                         long entityObjectId)
        Specified by:
        modifyLoadItem in class Binary
      • storeEntityHeader

        public final long storeEntityHeader​(long entityContentLength,
                                            long entityTypeId,
                                            long entityObjectId)
        Description copied from class: Binary
        Writes the header (etc...).

        Returns a memory address that is guaranteed to be safe for writing len bytes. Writing any more bytes will lead to unpredictable results, from (most likely) destroying the byte stream's consistency up to crashing the VM immediately or at some point in the future.

        DO NOT WRITE MORE THEN len BYTES TO THE RETURNED ADDRESS!

        Specified by:
        storeEntityHeader in class Binary
      • clear

        public final void clear()
      • isEmpty

        public final boolean isEmpty()
      • totalLength

        public final long totalLength()