Java ByteBuffer Write writeHeader(int type, ByteBuffer lengthBuffer, ByteBuffer buffer)

Here you can find the source of writeHeader(int type, ByteBuffer lengthBuffer, ByteBuffer buffer)

Description

write Header

License

LGPL

Declaration

public static void writeHeader(int type, ByteBuffer lengthBuffer, ByteBuffer buffer) 

Method Source Code


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

import java.nio.ByteBuffer;

public class Main {
    public static void writeHeader(int type, ByteBuffer lengthBuffer, ByteBuffer buffer) {
        buffer.put((byte) type);
        buffer.put(lengthBuffer);//from   w w  w. ja va2 s  . c  o  m
    }
}

Related

  1. writeFully(final FileChannel channel, final ByteBuffer dst, final long position)
  2. writeFully(final WritableByteChannel channel, final ByteBuffer buf)
  3. writeFully(WritableByteChannel bc, ByteBuffer buf)
  4. writeFully(WritableByteChannel channel, ByteBuffer[] srcs)
  5. writeHalf(final ByteBuffer buf, final int value)
  6. writeHeaderAndLsd(ByteBuffer out, int width, int height, boolean hasGct, int gctSize)
  7. writeHexString(ByteBuffer buffer, String hex)
  8. writeHexString(ByteBuffer buffer, String hexStr)
  9. writeImageDescriptor(ByteBuffer out, int imageLeft, int imageTop, int imageWidth, int imageHeight, boolean hasLct, int numColors)