# fidl::CodingTraits\< bool \>

## Summary

| ### Public static attributes ||
|---|---|
| `https://fuchsia.dev/reference/cpp/struct/fidl/coding-traits-bool-#structfidl_1_1_coding_traits_3_01bool_01_4_1ab0b6c33bad882d56a1abf752aa068cc2 = sizeof(bool)` | `constexpr size_t` |

| ### Public static functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/struct/fidl/coding-traits-bool-#structfidl_1_1_coding_traits_3_01bool_01_4_1a54d060c6fe93fe26466abc09808c051b(DecoderImpl *decoder, bool *value, size_t offset)` | `void` |
| `https://fuchsia.dev/reference/cpp/struct/fidl/coding-traits-bool-#structfidl_1_1_coding_traits_3_01bool_01_4_1aea81ee25dea60dc5d5136868d1dbdd14(DecoderImpl *decoder, std::vector< bool >::iterator value, size_t offset)` | `void` |
| `https://fuchsia.dev/reference/cpp/struct/fidl/coding-traits-bool-#structfidl_1_1_coding_traits_3_01bool_01_4_1a4d5b5567cc2ac534a4a7ecae48c3b6fa(EncoderImpl *encoder, bool *value, size_t offset, std::optional< https://fuchsia.dev/reference/cpp/struct/fidl/handle-information#structfidl_1_1_handle_information > maybe_handle_info)` | `void` |
| `https://fuchsia.dev/reference/cpp/struct/fidl/coding-traits-bool-#structfidl_1_1_coding_traits_3_01bool_01_4_1a181365b1ae51194a4b9e9c59b955dec2(EncoderImpl *encoder, std::vector< bool >::iterator value, size_t offset, std::optional< https://fuchsia.dev/reference/cpp/struct/fidl/handle-information#structfidl_1_1_handle_information > maybe_handle_info)` | `void` |

## Public static attributes

### kInlineSize

```c++
constexpr size_t fidl::CodingTraits< bool >::kInlineSize = sizeof(bool)
```

## Public static functions

### Decode

```c++
void fidl::CodingTraits< bool >::Decode(
  DecoderImpl *decoder,
  bool *value,
  size_t offset
)
```

### Decode

```c++
void fidl::CodingTraits< bool >::Decode(
  DecoderImpl *decoder,
  std::vector< bool >::iterator value,
  size_t offset
)
```

### Encode

```c++
void fidl::CodingTraits< bool >::Encode(
  EncoderImpl *encoder,
  bool *value,
  size_t offset,
  std::optional< HandleInformation > maybe_handle_info
)
```

### Encode

```c++
void fidl::CodingTraits< bool >::Encode(
  EncoderImpl *encoder,
  std::vector< bool >::iterator value,
  size_t offset,
  std::optional< HandleInformation > maybe_handle_info
)
```