Here you can find the source of writeBytesNoLength(ByteBuffer logBuf, byte[] b)
public static void writeBytesNoLength(ByteBuffer logBuf, byte[] b)
//package com.java2s; /*-/* ww w . ja v a2 s .c o m*/ * See the file LICENSE for redistribution information. * * Copyright (c) 2002-2010 Oracle. All rights reserved. * */ import java.nio.ByteBuffer; public class Main { /** * Write a byte array into the log. No size is stored. */ public static void writeBytesNoLength(ByteBuffer logBuf, byte[] b) { /* Add the data itself. */ logBuf.put(b); } }