BoC (Bag of Cells) is the binary serialization format used across TON to package cells: smart contracts, messages, state, blocks. Every artefact in TON is a BoC.
Each cell stores up to 1023 bits of data and up to 4 references to other cells. A BoC is the DAG (graph) of those cells, serialized into a single blob.