Class FillByteBufferDataConsumer

java.lang.Object
cool.scx.io.data_consumer.FillByteBufferDataConsumer
All Implemented Interfaces:
DataConsumer

public class FillByteBufferDataConsumer extends Object implements DataConsumer
填充方式
Version:
0.0.1
Author:
scx567888
  • Constructor Details

    • FillByteBufferDataConsumer

      public FillByteBufferDataConsumer(ByteBuffer data)
  • Method Details

    • accept

      public boolean accept(byte[] bytes, int position, int length)
      Specified by:
      accept in interface DataConsumer
      Parameters:
      bytes - 字节
      position - 起始位置
      length - 长度
      Returns:
      是否需要更多数据
    • getFilledLength

      public int getFilledLength()