Class CodePointBuffer


  • public class CodePointBuffer
    extends java.lang.Object
    Wrapper for ByteBuffer / CharBuffer / IntBuffer. Because Java lacks generics on primitive types, these three types do not share an interface, so we have to write one manually.
    • Method Detail

      • withBytes

        public static CodePointBuffer withBytes​(java.nio.ByteBuffer byteBuffer)
      • withChars

        public static CodePointBuffer withChars​(java.nio.CharBuffer charBuffer)
      • withInts

        public static CodePointBuffer withInts​(java.nio.IntBuffer intBuffer)
      • position

        public int position()
      • position

        public void position​(int newPosition)
      • remaining

        public int remaining()
      • get

        public int get​(int offset)