private static class SnmpSession.ByteArrayInfo
extends java.lang.Object
Encapsulates a byte array and the number of bytes of valid data in the array. The length passed to the constructor is normally less then the length of the encapsulated array.
Modifier and Type | Field and Description |
---|---|
private byte[] |
m_buf
The buffer
|
private int |
m_length
The valid length of the buffer
|
Constructor and Description |
---|
ByteArrayInfo(byte[] buf,
int length)
Builds an encapuslated array with the passed
buffer and its valid length set to
length.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
array()
returns the encapsulated array
|
int |
size()
Returns the valid length of the encapsulate array
|
private byte[] m_buf
private int m_length
Generated by iurt on 2015.