Here you can find the source of readTs(ByteBuffer is, int c)
public static long readTs(ByteBuffer is, int c)
//package com.java2s; //License from project: Mozilla Public License import java.nio.ByteBuffer; public class Main { public static long readTs(ByteBuffer is, int c) { return (((long) c & 0x0e) << 29) | ((is.get() & 0xff) << 22) | (((is.get() & 0xff) >> 1) << 15) | ((is.get() & 0xff) << 7) | ((is.get() & 0xff) >> 1); }//from ww w . j a v a 2 s .c o m public static long readTs(ByteBuffer is) { return (((long) is.get() & 0x0e) << 29) | ((is.get() & 0xff) << 22) | (((is.get() & 0xff) >> 1) << 15) | ((is.get() & 0xff) << 7) | ((is.get() & 0xff) >> 1); } }