Java File Read via ByteBuffer readLong(byte[] src, int pointer)

Here you can find the source of readLong(byte[] src, int pointer)

Description

read Long

License

Open Source License

Declaration

public static long readLong(byte[] src, int pointer) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.nio.ByteBuffer;

public class Main {
    public static long readLong(byte[] src, int pointer) {
        return ByteBuffer.wrap(src, pointer, 8).getLong();
    }/* w  w w .  j a  v  a 2  s  .  c  o  m*/
}

Related

  1. readIntArray(DataInput input)
  2. readIntLittleEndian(InputStream in)
  3. readIntoBuffer(RandomAccessFile file, int offset, int size)
  4. readJsonFromFile(String path)
  5. readLargeFile(File file)
  6. readLong(InputStream input)
  7. readLong(InputStream is)
  8. readLong(InputStream is, ByteOrder bo)
  9. readLong(RandomAccessFile raFile)