[][src]Function eosio_cdt_sys::read_transaction

pub unsafe extern "C" fn read_transaction(
    buffer: *mut c_char,
    size: usize
) -> usize

Access a copy of the currently executing transaction.

@brief Access a copy of the currently executing transaction. @param buffer - a buffer to write the current transaction to @param size - the size of the buffer, 0 to return required size @return the size of the transaction written to the buffer, or number of bytes that can be copied if size==0 passed