public static char getChar ( MemorySegment [ ] segments , int offset ) { if ( inFirstSegment ( segments , offset , 2 ) ) { return segments [ 0 ] . getChar ( offset ) ; } else { return getCharMultiSegments ( segments , offset ) ; } }
get char from segments .