Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
43
bytes encodeByteArray(bytes const& _data)
44
{
45
return bytes{0x0a} + varintEncoding(_data.size()) + _data;
46
}
47
48
bytes encodeHash(bytes const& _data)
49
{
Callers
2
combineLinks
Function · 0.85
ipfsHash
Method · 0.85
Calls
2
varintEncoding
Function · 0.85
size
Method · 0.45
Tested by
no test coverage detected