# envelopeSize function | |
int envelopeSize | |
([WireFormat](../package-fidl_fidl/WireFormat.md) wireFormat) | |
## Implementation | |
```dart | |
int envelopeSize(WireFormat wireFormat) { | |
switch (wireFormat) { | |
case WireFormat.v2: | |
return 8; | |
default: | |
throw FidlError('unknown wire format'); | |
} | |
} | |
``` | |