Java Long to long2leb(final long x, final byte[] buf, final int offset)

Here you can find the source of long2leb(final long x, final byte[] buf, final int offset)

Description

longleb

License

Apache License

Declaration

public static void long2leb(final long x, final byte[] buf, final int offset) 

Method Source Code

//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*/
}

Related

  1. long2char(long x)
  2. long2Date(Long date, String interval)
  3. long2dotted(long address)
  4. long2FourChars(long i)
  5. Long2H(final long l)
  6. long2longArr(long val, long[] res)
  7. long2MacAddress(long l)
  8. long2minLeb(final long x)
  9. longTo36Str(String str)