public class Asn1Buffer2 extends Object
| Modifier and Type | Class and Description |
|---|---|
private class |
Asn1Buffer2.InternalBuffer
The internal buffer storage
|
| Modifier and Type | Field and Description |
|---|---|
private Asn1Buffer2.InternalBuffer |
currentBuffer
The current internal buffer
|
private static int |
DEFAULT_SIZE
The buffer default size
|
private int |
pos
The current position in the buffer
|
private int |
size
The current size
|
| Constructor and Description |
|---|
Asn1Buffer2()
Create a new instance of Asn1Buffer2
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the position, emptying the buffer.
|
private void |
extend()
Extend the buffer
|
byte[] |
getBytes() |
int |
getPos() |
int |
getSize() |
void |
put(byte b)
Store a byte at the current position in the buffer
|
void |
put(byte[] bytes)
Store some bytes at the current position in the buffer
|
String |
toString() |
private static final int DEFAULT_SIZE
private int pos
private int size
private Asn1Buffer2.InternalBuffer currentBuffer
public int getPos()
public void put(byte b)
b - The byte to storepublic void put(byte[] bytes)
bytes - The bytes to storeprivate void extend()
public byte[] getBytes()
public int getSize()
public void clear()
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.