# Module `0x1::bcs`
Utility 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/bcs#binary-canonical-serialization-bcs for more
details on BCS.
- [Function `to_bytes`](#0x1_bcs_to_bytes)
- [Module Specification](#@Module_Specification_0)
## Function `to_bytes`
Return the binary representation of v
in BCS (Binary Canonical Serialization) format
public fun to_bytes<MoveValue>(v: &MoveValue): vector<u8>
Implementation
native public fun to_bytes<MoveValue>(v: &MoveValue): vector<u8>;
## Module Specification
Native function which is defined in the prover's prelude.
native fun serialize<MoveValue>(v: &MoveValue): vector<u8>;
[//]: # ("File containing references which can be used from documentation")