ewe.util
Interface ByteEncodable
- All Known Implementing Classes:
- BigDecimal, BigInteger, Decimal, mImage, MPN, RemoteCall, RSAKey
- public interface ByteEncodable
A ByteEncodable object is one that can encode its data as a sequence of
bytes.
|
Method Summary |
int |
encodeBytes(ByteArray dest)
This requests the Object to encode itself as a stream of bytes which is appended
to the destination ByteArray. |
encodeBytes
public int encodeBytes(ByteArray dest)
- This requests the Object to encode itself as a stream of bytes which is appended
to the destination ByteArray. If the destination ByteArray is null, then the object
should report how many bytes would be used if the object was encoded.
- Parameters:
dest - The destination ByteArray, or null to determine the number of bytes needed to encode.
- Returns:
- The number of bytes appended to the ByteArray or the number of bytes needed to encode.