Java ByteBuffer Read readUUID(ByteBuffer buffer)

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

Description

read UUID

License

Open Source License

Declaration

public static UUID readUUID(ByteBuffer buffer) 

Method Source Code

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

import java.nio.ByteBuffer;

import java.util.UUID;

public class Main {
    public static UUID readUUID(ByteBuffer buffer) {
        long most = buffer.getLong();
        long least = buffer.getLong();
        return new UUID(most, least);
    }// w  w w .j  a  v a 2 s. c om
}

Related

  1. readSize(ByteBuffer buffer)
  2. readSmart(ByteBuffer buffer)
  3. readToBytes(ByteBuffer byteBuffer)
  4. readTs(ByteBuffer is)
  5. readTs(ByteBuffer is, int c)
  6. readVariableLength(ByteBuffer buf)
  7. readVInt(ByteBuffer bb)
  8. readVInt(ByteBuffer bb)
  9. readVL(ByteBuffer byteBuffer)