public class BasicNobitsSectionImpl extends BasicElementImpl implements ObjectFile.NobitsSectionImpl
Constructor and Description |
---|
BasicNobitsSectionImpl(long size) |
BasicNobitsSectionImpl(long size,
ObjectFile.Section s) |
BasicNobitsSectionImpl(ObjectFile.Section s) |
Modifier and Type | Method and Description |
---|---|
int |
getAlignment() |
Iterable<BuildDependency> |
getDependencies(Map<ObjectFile.Element,LayoutDecisionMap> decisions)
Implementing this method allows to declare dependencies to other Sections (i.e.
|
int |
getMemSize(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided)
Implement this method to provide the section size in memory (at runtime).
|
byte[] |
getOrDecideContent(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided,
byte[] contentHint)
Implement this method to deliver the content of the section.
|
int |
getOrDecideSize(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided,
int sizeHint)
Implement this method to provide the size of this section.
|
long |
getSizeInMemory() |
boolean |
isLoadable()
Whether this section is loaded into memory at runtime.
|
void |
setSizeInMemory(long size) |
getDecisions, getElement, getOrDecideOffset, getOrDecideVaddr, getOwner, isReferenceable, setElement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDecisions, getElement, getOrDecideOffset, getOrDecideVaddr, isReferenceable, setElement
public BasicNobitsSectionImpl(long size)
public BasicNobitsSectionImpl(ObjectFile.Section s)
public BasicNobitsSectionImpl(long size, ObjectFile.Section s)
public Iterable<BuildDependency> getDependencies(Map<ObjectFile.Element,LayoutDecisionMap> decisions)
ElementImpl
getDependencies
in interface ElementImpl
getDependencies
in class BasicElementImpl
public int getOrDecideSize(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided, int sizeHint)
ElementImpl
getOrDecideSize
in interface ElementImpl
getOrDecideSize
in class BasicElementImpl
public byte[] getOrDecideContent(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided, byte[] contentHint)
ElementImpl
getOrDecideContent
in interface ElementImpl
public int getMemSize(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided)
ElementImpl
getMemSize
in interface ElementImpl
getMemSize
in class BasicElementImpl
public long getSizeInMemory()
getSizeInMemory
in interface ObjectFile.NobitsSectionImpl
public void setSizeInMemory(long size)
setSizeInMemory
in interface ObjectFile.NobitsSectionImpl
public int getAlignment()
getAlignment
in interface ElementImpl
getAlignment
in class BasicElementImpl
public boolean isLoadable()
ElementImpl
isLoadable
in interface ElementImpl