MCPcopy Create free account
hub / github.com/argotorg/solidity / encodeByteArray

Function encodeByteArray

libsolutil/IpfsHash.cpp:43–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43bytes encodeByteArray(bytes const& _data)
44{
45 return bytes{0x0a} + varintEncoding(_data.size()) + _data;
46}
47
48bytes encodeHash(bytes const& _data)
49{

Callers 2

combineLinksFunction · 0.85
ipfsHashMethod · 0.85

Calls 2

varintEncodingFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected