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