public static short getShort ( MemorySegment [ ] segments , int offset ) { if ( inFirstSegment ( segments , offset , 2 ) ) { return segments [ 0 ] . getShort ( offset ) ; } else { return getShortMultiSegments ( segments , offset ) ; } }
get short from segments .