类 FastByteBuffer

java.lang.Object
com.axios.core.tool.io.FastByteBuffer

public class FastByteBuffer
extends Object
[快速缓冲](Fast buffer)
从以下版本开始:
2021-11-28 14:30:02
版本:
V1.0
作者:
XiaoXunYao
  • 构造器详细资料

    • FastByteBuffer

      public FastByteBuffer()
    • FastByteBuffer

      public FastByteBuffer​(int size)
  • 方法详细资料

    • append

      public FastByteBuffer append​(byte[] array, int off, int len)
      参数:
      array - 数据
      off - 偏移量
      len - 字节数
      返回:
      com.axios.core.tool.io.FastByteBuffer
      从以下版本开始:
      2021-11-28 14:31:19
    • append

      public FastByteBuffer append​(byte[] array)
      [向快速缓冲加入数据](Adding data to the cache)
      参数:
      array - 数据
      返回:
      com.axios.core.tool.io.FastByteBuffer
      从以下版本开始:
      2021-11-28 14:31:48
    • append

      public FastByteBuffer append​(byte element)
      [向快速缓冲加入一个字节](Add a byte to the cache)
      参数:
      element - 一个字节的数据
      返回:
      com.axios.core.tool.io.FastByteBuffer
      从以下版本开始:
      2021-11-28 14:32:35
    • append

      public FastByteBuffer append​(FastByteBuffer buff)
      [将另一个快速缓冲加入到自身](Add another cache to itself)
      参数:
      buff - 快速缓冲
      返回:
      com.axios.core.tool.io.FastByteBuffer
      从以下版本开始:
      2021-11-28 14:33:04
    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • index

      public int index()
    • offset

      public int offset()
    • array

      public byte[] array​(int index)
    • reset

      public void reset()
    • toArray

      public byte[] toArray()
    • toArray

      public byte[] toArray​(int start, int len)
    • get

      public byte get​(int index)