MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Bytes

Method Bytes

blockproducer/interfaces/transaction.go:37–41  ·  view source on GitHub ↗

Bytes encodes a TransactionType to a byte slice.

()

Source from the content-addressed store, hash-verified

35
36// Bytes encodes a TransactionType to a byte slice.
37func (t TransactionType) Bytes() (b []byte) {
38 b = make([]byte, 4)
39 binary.BigEndian.PutUint32(b, uint32(t))
40 return
41}
42
43// FromBytes decodes a TransactionType from a byte slice.
44func FromBytes(b []byte) TransactionType {

Callers 8

addBlockFunction · 0.45
addTxFunction · 0.45
updateAccountFunction · 0.45
updateShardChainFunction · 0.45
updateProviderFunction · 0.45
TestTypesFunction · 0.45
TestTransactionWrapperFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestTypesFunction · 0.36
TestTransactionWrapperFunction · 0.36