public static int getInt ( MemorySegment [ ] segments , int offset ) { if ( inFirstSegment ( segments , offset , 4 ) ) { return segments [ 0 ] . getInt ( offset ) ; } else { return getIntMultiSegments ( segments , offset ) ; } }
get int from segments .