MCPcopy Create free account
hub / github.com/EndstoneMC/endstone / writeString

Method writeString

src/bedrock/core/utility/binary_stream.cpp:242–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void BinaryStream::writeString(std::string_view value, char const *doc_field_name, char const *doc_field_notes)
243{
244 writeUnsignedVarInt(value.length(), "String Length", nullptr);
245 write(value.data(), value.size());
246}
247
248void BinaryStream::writeIf(bool control_value, char const *doc_field_name,
249 brstd::function_ref<void(BinaryStream &)> const &write_if_true,

Callers 1

writeMethod · 0.45

Calls 3

lengthMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected