类 ByteArray

  • 所有已实现的接口:
    Iterable<byte[]>

    public class ByteArray
    extends Object
    implements Iterable<byte[]>
    从以下版本开始:
    2.1.0
    作者:
    Leon Chen
    • 字段详细资料

      • MIN_VALUE

        public static final long MIN_VALUE
        另请参阅:
        常量字段值
      • MAX_VALUE

        public static final long MAX_VALUE
        另请参阅:
        常量字段值
      • cap

        protected final int cap
      • length

        protected final long length
      • smallBytes

        protected byte[] smallBytes
      • largeBytes

        protected byte[][] largeBytes
    • 构造器详细资料

      • ByteArray

        public ByteArray​(byte[] smallBytes)
      • ByteArray

        public ByteArray​(long length)
      • ByteArray

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

        public ByteArray​(long length,
                         int cap)
    • 方法详细资料

      • 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)