public class Asn1Buffer extends Object
Constructor and Description |
---|
Asn1Buffer()
Creates a new Asn1Buffer instance
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the position, emptying the buffer.
|
ByteBuffer |
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
|
void |
setPos(int pos)
Set the current position in the buffer
|
String |
toString() |
public Asn1Buffer()
public int getPos()
public void setPos(int pos)
pos
- The position to move the buffer topublic void put(byte b)
b
- The byte to storepublic void put(byte[] bytes)
bytes
- The bytes to storepublic ByteBuffer getBytes()
public int getSize()
public void clear()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.