[#Transport-ReceivedBytes]
= xref:Transport.adoc[Transport]::ReceivedBytes
:relfileprefix: ../
:mrdocs:

Feed wire bytes to the transport&period;

== Synopsis

Declared in `&lt;net&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
ReceivedBytes(std::span&lt;uint8&lowbar;t const&gt;& msg&lowbar;bytes) = 0;
----

== Description

Consumed bytes are chopped off the front of msg&lowbar;bytes&period;

== Return Value

false if some bytes were invalid, in which case the transport can&apos;t be used anymore&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *msg&lowbar;bytes* [inout]
| bytes received from the wire&semi; consumed bytes are chopped off the front&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
