agave_transaction_view/
transaction_data.rs

1
2
3
4
5
6
7
8
9
10
11
12
/// Trait for accessing transaction data from an abstract byte container.
pub trait TransactionData {
    /// Returns a reference to the serialized transaction data.
    fn data(&self) -> &[u8];
}

impl TransactionData for &[u8] {
    #[inline]
    fn data(&self) -> &[u8] {
        self
    }
}