TibrvMsgDecoder.decode()

Method

Declaration

java.lang.Object decode(
    short type,
    byte[] bytes)

Purpose

Decode data (of a custom datatype) from wire format into a Java object.

Remarks

When this method successfully decodes the data, it must return the decoding as a Java object. When this method cannot decode the data, it must return null.

Parameter

Description

type

Decode this custom datatype.

bytes

Decode the data contained in this byte array.

This argument cannot be null. However, it can be a byte array with length zero.

See Also

TibrvMsgEncoder.encode()