From a76c20627894c6c71428a34dd5ce995ca920b525 Mon Sep 17 00:00:00 2001 From: Novus Nota <68142933+novusnota@users.noreply.github.com> Date: Mon, 22 Jul 2024 15:04:49 +0200 Subject: [PATCH] feat: reference tvm.pdf after a suggestion from code review --- pages/book/cells.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/book/cells.mdx b/pages/book/cells.mdx index 34a041b5..832425bb 100644 --- a/pages/book/cells.mdx +++ b/pages/book/cells.mdx @@ -53,7 +53,7 @@ Before a cell can be transferred over the network or stored on disk, it must be #### Standard representation [#cells-representation] -Standard [`Cell{:tact}`](#cells) representation is a common serialization format for cells, representing them in octet (byte) sequences. Its algorithm begins with serializing the first $2$ bytes called descriptors: +Standard [`Cell{:tact}`](#cells) representation is a common serialization format for cells first described in the [tvm.pdf](https://docs.ton.org/tvm.pdf). Its algorithm representing cells in octet (byte) sequences begins with serializing the first $2$ bytes called descriptors: * _Refs descriptor_ is calculated according to this formula: $r + 8 * k + 32 * l$, where $r$ is the number of references contained in the cell (between $0$ and $4$), $k$ is a flag for the cell kind ($0$ for [ordinary](#cells-kinds) and $1$ for [exotic](#cells-kinds)), and $l$ is the [level](#cells-levels) of the cell (between $0$ and $3$). * _Bits descriptor_ is calculated according to this formula $\lfloor\frac{b}{8}\rfloor + \lceil\frac{b}{8}\rceil$, where $b$ is the number of bits in the cell (between $0$ and $1023$).