Growing ByteBuffer

前端 未结 11 1141
温柔的废话
温柔的废话 2021-01-31 14:21

Has anyone has ever seen an implementation of java.nio.ByteBuffer that will grow dynamically if a putX() call overruns the capacity?

The reason I want to do it this way

11条回答
  •  太阳男子
    2021-01-31 14:55

    A Vector allows for continuous growth

    Vector bFOO = new Vector(); bFOO.add((byte) 0x00);`

提交回复
热议问题