public static byte getByte ( MemorySegment [ ] segments , int offset ) { if ( inFirstSegment ( segments , offset , 1 ) ) { return segments [ 0 ] . get ( offset ) ; } else { return getByteMultiSegments ( segments , offset ) ; } }
get byte from segments .