Class ByteArrayWrapper

    • Constructor Detail

      • ByteArrayWrapper

        public ByteArrayWrapper​(@Nonnull
                                byte[] aBytes,
                                boolean bCopyNeeded)
        Wrap the whole byte array.
        Parameters:
        aBytes - The byte array to be wrapped. May not be null.
        bCopyNeeded - true to copy it, false to reuse the instance.
      • ByteArrayWrapper

        public ByteArrayWrapper​(@Nonnull
                                byte[] aBytes,
                                @Nonnegative
                                int nOfs,
                                @Nonnegative
                                int nLength,
                                boolean bCopyNeeded)
        Wrap the passed byte array or just parts of it.
        Parameters:
        aBytes - The byte array to be wrapped. May not be null.
        nOfs - Offset. Must be ≥ 0.
        nLength - Length. Must be ≥ 0.
        bCopyNeeded - true to copy it, false to reuse the instance.