Top Description Fields Constructors Methods
org.bouncycastle.gpg.keybox

pack-priv Class KeyBoxByteBuffer

extends Object
Class Inheritance
Imports
java.io.ByteArrayOutputStream, .IOException, .InputStream, java.nio.ByteBuffer

Wraps an existing ByteArrayBuffer with support for unsigned int reads. Method names in the nomenclature of the spec.

Field Summary

Modifier and TypeField and Description
private final ByteBuffer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public byte[]
bN(int size)

public void
consume(int size)

public ByteBuffer
public boolean
public int
public void
position(int p)

public byte[]
rangeOf(int start, int end)

public int
public int
size()

public int
u16()

public long
u32()

public int
u8()

pack-priv static KeyBoxByteBuffer
wrap(Object src)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufferback to summary
private final ByteBuffer buffer

Constructor Detail

KeyBoxByteBufferback to summary
public KeyBoxByteBuffer(ByteBuffer buffer)

Method Detail

bNback to summary
public byte[] bN(int size)
consumeback to summary
public void consume(int size)
getBufferback to summary
public ByteBuffer getBuffer()
hasRemainingback to summary
public boolean hasRemaining()
positionback to summary
public int position()
positionback to summary
public void position(int p)
rangeOfback to summary
public byte[] rangeOf(int start, int end)
remainingback to summary
public int remaining()
sizeback to summary
public int size()
u16back to summary
public int u16()
u32back to summary
public long u32()
u8back to summary
public int u8()
wrapback to summary
pack-priv static KeyBoxByteBuffer wrap(Object src) throws IOException