Class ByteBuilder


  • public class ByteBuilder
    extends Object
    Since:
    2.1.0
    Author:
    Leon Chen
    • Method Detail

      • allocate

        public static ByteBuilder allocate​(int cap)
      • put

        public void put​(byte b)
      • put

        public void put​(byte[] bytes)
        Parameters:
        bytes - bytes
        Since:
        3.5.5
      • put

        public void put​(byte[] bytes,
                        int offset,
                        int length)
        Parameters:
        bytes - bytes
        offset - offset
        length - length
        Since:
        3.5.5
      • put

        public void put​(ByteBuffer buf)
        Parameters:
        buf - buf
        Since:
        3.5.5
      • length

        public int length()
      • array

        public byte[] array()
      • buffers

        public List<ByteBuffer> buffers()
        Returns:
        list buffers
        Since:
        3.5.5
      • clear

        public void clear()