Java ByteBuffer Write writeBytesNoLength(ByteBuffer logBuf, byte[] b)

Here you can find the source of writeBytesNoLength(ByteBuffer logBuf, byte[] b)

Description

Write a byte array into the log.

License

Open Source License

Declaration

public static void writeBytesNoLength(ByteBuffer logBuf, byte[] b) 

Method Source Code


//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);
    }
}

Related

  1. writeByteArray(ByteBuffer byteBuffer, byte[] bytes)
  2. writeByteArray(ByteBuffer logBuf, byte[] b)
  3. writeByteBuffer(ByteBuffer bbuf, String filename)
  4. writeByteBuffer(RandomAccessFile file, ByteBuffer buffer)
  5. writeByteBuffer(WritableByteChannel channel, ByteBuffer buf, int bytesToWrite)
  6. writeByteString(ByteBuffer byteBuffer, String value)
  7. writeCDouble(ByteBuffer buffer, double value)
  8. writeCharacterString(ByteBuffer buf, byte[] bytes)
  9. writeCInt(ByteBuffer buffer, int anInt)