language/move-stdlib/docs/BCS.md
<a name="0x1_BCS"></a>
0x1::BCSUtility for converting a Move value to its binary representation in BCS (Binary Canonical Serialization). BCS is the binary encoding for Move resources and other non-module values published on-chain. See https://github.com/diem/diem/tree/main/common/bcs for more details on BCS.
<pre><code></code></pre><a name="0x1_BCS_to_bytes"></a>
to_bytesReturn the binary representation of <code>v</code> in BCS (Binary Canonical Serialization) format
<pre><code><b>public</b> <b>fun</b> <a href="BCS.md#0x1_BCS_to_bytes">to_bytes</a><MoveValue>(v: &MoveValue): vector<u8> </code></pre> <details> <summary>Implementation</summary> <pre><code><b>native</b> <b>public</b> <b>fun</b> <a href="BCS.md#0x1_BCS_to_bytes">to_bytes</a><MoveValue>(v: &MoveValue): vector<u8>; </code></pre> </details><a name="@Module_Specification_0"></a>
Native function which is defined in the prover's prelude.
<a name="0x1_BCS_serialize"></a>
<pre><code><b>native</b> <b>fun</b> <a href="BCS.md#0x1_BCS_serialize">serialize</a><MoveValue>(v: &MoveValue): vector<u8>; </code></pre>