Class ByteArray

  • All Implemented Interfaces:
    Iterable<byte[]>

    public class ByteArray
    extends Object
    implements Iterable<byte[]>
    Since:
    2.1.0
    Author:
    Leon Chen
    • Constructor Detail

      • ByteArray

        public ByteArray​(byte[] smallBytes)
      • ByteArray

        public ByteArray​(long length)
      • ByteArray

        public ByteArray​(byte[] smallBytes,
                         int cap)
      • ByteArray

        public ByteArray​(long length,
                         int cap)
    • Method Detail

      • set

        public void set​(long idx,
                        byte value)
      • get

        public byte get​(long idx)
      • length

        public long length()
      • first

        public byte[] first()
      • arraycopy

        public static void arraycopy​(ByteArray src,
                                     long srcPos,
                                     ByteArray dest,
                                     long destPos,
                                     long length)