# Interface: com.pnfsoftware.jeb.core.units.codeobject.ISegmentInformation

Definition of object code segments and sections.

## Static Field: FLAG_ALLOC_ON_WRITE
Type: `int`

Constant value: `1073741824`
Description: The segment will be allocated once there is an actual write to it. Useful for large and initially empty segments.

## Static Field: FLAG_EXECUTE
Type: `int`

Constant value: `4`
Description: The segment or section is executable

## Static Field: FLAG_INVALID
Type: `int`

Constant value: `536870912`
Description: The segment or section appears invalid.

## Static Field: FLAG_READ
Type: `int`

Constant value: `2`
Description: The segment or section is readable

## Static Field: FLAG_RW
Type: `int`

Constant value: `3`
Description: Combination flag: R, W

## Static Field: FLAG_RWX
Type: `int`

Constant value: `7`
Description: Combination flag: R, W, X

## Static Field: FLAG_RX
Type: `int`

Constant value: `6`
Description: Combination flag: R, X

## Static Field: FLAG_SYNTHETIC
Type: `int`

Constant value: `-2147483648`
Description: The segment or section is not explicitly defined in the code object file.

## Static Field: FLAG_WRITE
Type: `int`

Constant value: `1`
Description: The segment or section is writable

## Method: getAlignment
- return type: `long`

Description: Get the memory alignment **within** the segment.
return: the alignment in bytes

## Method: getFlags
- return type: `int`

Description: Get the flags for this segment or section.
return: a combination of `FLAG_*` attributes

## Method: getName
- return type: `java.lang.String`

Description: Retrieve the name of the segment or section.
return: the name, null if unsupported

## Method: getOffsetInFile
- return type: `long`

Description: Get the file offset of the segment or section.
return: the file offset in bytes

## Method: getOffsetInMemory
- return type: `long`

Description: Get the in\-memory, base\-relative address of the beginning of this segment or section. If a base address is not known or cannot be determined, the offset is 0\-relative, and therefore, considered absolute.
return: the base\-relative memory address in bytes

## Method: getSizeInFile
- return type: `long`

Description: Get the file size of this segment or section.
return: the size in bytes

## Method: getSizeInMemory
- return type: `long`

Description: Get the in\-memory size of this segment or section.
return: the size in bytes

