public interface ContextDependentAttribute
The attribute can use a provided Context to lookup the necessary
data.
Rather than encoding them via the standard Attribute#encode() method,
the stack would use the one from this interface.
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encode(byte[] data,
int offset,
int length)
Returns a binary representation of this attribute.
|
byte[] encode(byte[] data,
int offset,
int length)
data - the content of the message that this attribute will be
transported inoffset - the content-related offset where the actual content
starts.length - the length of the content in the content array.Copyright © 2017 TeleStax, Inc.. All Rights Reserved.