public class ContextBuffer extends Object
| 构造器和说明 |
|---|
ContextBuffer(int maxSize)
构造方法
|
ContextBuffer(int maxSize,
boolean inner)
构造方法
|
| 限定符和类型 | 方法和说明 |
|---|---|
@NotNull byte[] |
getByteBuffer()
获取字节数组缓存
|
@NotNull byte[] |
getByteBuffer(int expected)
得到期望字节数组大小
|
@NotNull char[] |
getCharBuffer()
获取字符数组缓存
|
@NotNull char[] |
getCharBuffer(int expected)
得到一个期望长度的buffer,调用者应该检测是否返回null,表示
|
public ContextBuffer(int maxSize,
boolean inner)
maxSize - 最大容量inner - 是否为临时 bufferpublic ContextBuffer(int maxSize)
maxSize - 最大容量@NotNull public @NotNull char[] getCharBuffer()
@NotNull public @NotNull byte[] getByteBuffer()
@NotNull public @NotNull char[] getCharBuffer(int expected)
@NotNull public @NotNull byte[] getByteBuffer(int expected)
Copyright © 2022. All rights reserved.