decode_logs

Function decode_logs 

Source
pub fn decode_logs<I: OffsetSizeTrait>(
    signature: &LogSignature,
    data: &GenericStringArray<I>,
    allow_decode_fail: bool,
) -> Result<RecordBatch>
Expand description

Decodes base64-encoded log messages into a RecordBatch of typed parameter columns.

Each row’s string value is base64-decoded and then Borsh-deserialized according to the parameter types in signature. Rows that fail to decode are filled with nulls when allow_decode_fail is true.