@Nonnull
    public static byte[] encode( final long maxInactiveInterval, final long lastAccessedTime, final long thisAccessedTime ) {
        int idx = 0;
        final byte[] data = new byte[ 4 + 2 * 8 ];
        encodeNum( maxInactiveInterval, data, idx, 4 );
        encodeNum( lastAccessedTime, data, idx += 4, 8 );
        encodeNum( thisAccessedTime, data, idx += 8, 8 );
        return data;
    }
@ Nonnull public static byte [ ] encode ( final long maxInactiveInterval , final long lastAccessedTime , final long thisAccessedTime ) { int idx = 0 ; final byte [ ] data = new byte [ 4 + 2 * 8 ] ; encodeNum ( maxInactiveInterval , data , idx , 4 ) ; encodeNum ( lastAccessedTime , data , idx += 4 , 8 ) ; encodeNum ( thisAccessedTime , data , idx += 8 , 8 ) ; return data ; }
Encode the given information to a byte[], that can be decoded later via {@link #decode(byte[])}.