Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AdjacencyLib

Git Source

Functions

encode

Pack one Adjacency into 64 bits: [degs:16 | kind:48]

function encode(Adjacency memory a) private pure returns (uint64);

packQuad

Packs up to 4 adjacencies (starting at offset) into a bytes32. Missing slots are treated as zero.

function packQuad(Adjacency[] memory adjs, uint256 offset) internal pure returns (bytes32 out);