public static Clock parseClock ( byte [ ] raw ) { if ( raw == null || raw . length < 8 ) { return Clock . ZERO ; } int cnt = raw . length >> 3 ; long [ ] values = new long [ cnt ] ; ByteBuffer bb = ByteBuffer . wrap ( raw ) ; for ( int i = 0 ; i < values . length ; i ++ ) { values [ i ] = bb . getLong ( ) ; } return new Clock ( values ) ; }
Parses a Clock value from its raw bytes .