public static long decodeMachineId ( byte [ ] flakeBytes ) { ByteBuffer buffer = ByteBuffer . allocate ( 16 ) ; buffer . put ( flakeBytes ) ; buffer . flip ( ) ; buffer . getLong ( ) ; return buffer . getLong ( ) >>> 16 ; }
Return the machine id from the given encoded Snowflake id .