Java ByteBuffer Set setSByte(ByteBuffer buffer, byte data)

Here you can find the source of setSByte(ByteBuffer buffer, byte data)

Description

set S Byte

License

Open Source License

Declaration

public static void setSByte(ByteBuffer buffer, byte data) 

Method Source Code

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

import java.nio.ByteBuffer;

public class Main {
    public static void setSByte(ByteBuffer buffer, byte data) {

        assert (buffer.capacity() - buffer.position() >= 1);

        buffer.put(data);/*from w  w  w . j  av  a  2 s .co  m*/
    }
}

Related

  1. setCell(ByteBuffer buffer, int cellIndex, int cellbytes)
  2. setCreationTime(ByteBuffer buf, Date date)
  3. setFree(int frameIx, int offset, boolean free, ByteBuffer[] frames)
  4. setLimIfNeeded(ByteBuffer bb, int lim)
  5. setLong(ByteBuffer buffer, long data)
  6. setSInt(ByteBuffer buffer, int data)
  7. setString(ByteBuffer buffer, int index)
  8. setString(ByteBuffer buffer, String data)
  9. setUniqueness(ByteBuffer bb, long uniqueness)