Java ByteBuffer Read readDword(ByteBuffer buffer)

Here you can find the source of readDword(ByteBuffer buffer)

Description

read Dword

License

Apache License

Declaration

public static long readDword(ByteBuffer buffer) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.IOException;
import java.nio.ByteBuffer;

public class Main {
    public static long readDword(ByteBuffer buffer) throws IOException {
        long v = (long) buffer.getInt();
        if (v < 0) {
            v += 4294967296L;//  www  .j  av a 2s  .  co m
        }
        return v;
    }
}

Related

  1. readChars(ByteBuffer bb, int length)
  2. readCharsUTF8(ByteBuffer bb, int length)
  3. readCInt(ByteBuffer buffer)
  4. readCString(ByteBuffer buf, int len)
  5. readDERString(ByteBuffer buf)
  6. readFileToByteBuffer(File file)
  7. readFixedLengthString(ByteBuffer buf, int length)
  8. readFixedLengthString(ByteBuffer byteBuffer, int size)
  9. readFixedPoint88(ByteBuffer bb)