public void fill ( byte value ) { int offset = 0 ; int length = size ; long longValue = Longs . fromBytes ( value , value , value , value , value , value , value , value ) ; while ( length >= SizeOf . SIZE_OF_LONG ) { unsafe . putLong ( base , address + offset , longValue ) ; offset += SizeOf . SIZE_OF_LONG ; length -= SizeOf . SIZE_OF_LONG ; } while ( length > 0 ) { unsafe . putByte ( base , address + offset , value ) ; offset ++ ; length -- ; } }
Fill the slice with the specified value ;