# Class: com.pnfsoftware.jeb.core.units.codeobject.SegmentInformation

Standard implementation of the [ISegmentInformation](ISegmentInformation) interface for segments and sections.

## Constructor: SegmentInformation
- parameter: `name`, type: `java.lang.String`
- parameter: `offsetInFile`, type: `long`
- parameter: `sizeInFile`, type: `long`
- parameter: `offsetInMemory`, type: `long`
- parameter: `sizeInMemory`, type: `long`
- parameter: `flags`, type: `int`

Description: Create segment information.
parameter: name: segment or section name
parameter: offsetInFile: file offset
parameter: sizeInFile: file size
parameter: offsetInMemory: memory offset
parameter: sizeInMemory: memory size
parameter: flags: segment flags

## Constructor: SegmentInformation
- parameter: `segment`, type: `com.pnfsoftware.jeb.core.units.codeobject.SegmentInformation`

Description: Copy segment information.
parameter: segment: source segment

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


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


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


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


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


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


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


## Method: setAlignment
- parameter: `alignment`, type: `long`

Description: Set alignment.
parameter: alignment: alignment in bytes

## Method: setFlags
- parameter: `flags`, type: `int`

Description: Set segment flags.
parameter: flags: segment flags

## Method: setName
- parameter: `name`, type: `java.lang.String`

Description: Set the segment or section name.
parameter: name: name

## Method: setOffsetInFile
- parameter: `offsetInFile`, type: `long`

Description: Set the file offset.
parameter: offsetInFile: file offset in bytes

## Method: setOffsetInMemory
- parameter: `offsetInMemory`, type: `long`

Description: Set the memory offset.
parameter: offsetInMemory: memory offset

## Method: setSizeInFile
- parameter: `sizeInFile`, type: `long`

Description: Set the file size.
parameter: sizeInFile: file size in bytes

## Method: setSizeInMemory
- parameter: `sizeInMemory`, type: `long`

Description: Set the memory size.
parameter: sizeInMemory: memory size in bytes

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


