terraqtt/protocol/writer.hpp
inline Byte* write_elements(Byte* output, std::error_code& ec, std::uint16_t value) noexcept
{
	output[0] = static_cast<Byte>(value >> 8);
	output[1] = static_cast<Byte>(value & 0xff);
	return output + 2;
}
/**
 * Writes an uint16 to the output buffer.
 *
 * @param output[in] the output buffer
 * @param ec[out] the output error; not used
 * @param value the value
 * @return the end of the output buffer
 */
Writes an uint16 to the output buffer.
@param output[in] the output buffer
@param ec[out] the output error; not used
@param value the value
@return the end of the output buffer
Writes an uint16 to the output buffer . @param output [ in ] the output buffer @param ec [ out ] the output error ; not used @param value the value @return the end of the output buffer
inline Byte* write_elements(Byte* output, std::error_code& ec, std::uint16_t value) noexcept
{
	output[0] = static_cast<Byte>(value >> 8);
	output[1] = static_cast<Byte>(value & 0xff);
	return output + 2;
}
inline Byte * write_elements ( Byte * output , std :: error_code & ec , std :: uint16_t value ) noexcept { output [ 0 ] = static_cast < Byte > ( value >> 8 ) ; output [ 1 ] = static_cast < Byte > ( value & 0xff ) ; return output + 2 ; }
Writes an uint16 to the output buffer.
Writes an uint16 to the output buffer .