public class IntBuffers
extends java.lang.Object
IntBuffer instances| Modifier and Type | Method and Description |
|---|---|
static java.nio.ByteBuffer |
convertToByteBuffer(java.nio.IntBuffer inputBuffer,
int elementSize)
Convert the given input buffer to a byte buffer that contains the data
of the input buffer, converted to elements with the given element size.
|
public static java.nio.ByteBuffer convertToByteBuffer(java.nio.IntBuffer inputBuffer,
int elementSize)
byte or short, respectively. If the element
size is 4, then the resulting buffer will contain the bytes of the
elements of the input buffer.inputBuffer - The input bufferelementSize - The element sizejava.lang.IllegalStateException - If the given element size is neither
1, 2 nor 4Copyright © 2022. All Rights Reserved.