Example usage for java.io Bits putLong

List of usage examples for java.io Bits putLong

Introduction

In this page you can find the example usage for java.io Bits putLong.

Prototype

static void putLong(byte[] b, int off, long val) 

Source Link

Usage

From source file:voldemort.store.cachestore.BlockUtil.java

public static byte[] longToBytes(long data) {
    byte[] b = new byte[8];
    Bits.putLong(b, 0, data);
    return b;//from www . ja  v a 2s.  co  m
}