Here you can find the source of long2leb(final long x, final byte[] buf, final int offset)
public static void long2leb(final long x, final byte[] buf, final int offset)
//package com.java2s; //License from project: Apache License public class Main { public static void long2leb(final long x, final byte[] buf, final int offset) { buf[offset] = (byte) x; buf[offset + 1] = (byte) (x >> 8); buf[offset + 2] = (byte) (x >> 16); buf[offset + 3] = (byte) (x >> 24); buf[offset + 4] = (byte) (x >> 32); buf[offset + 5] = (byte) (x >> 40); buf[offset + 6] = (byte) (x >> 48); buf[offset + 7] = (byte) (x >> 56); }/*from w w w . j a v a2s . com*/ }