MCPcopy Create free account
hub / github.com/apache/fory / zero_padding

Method zero_padding

cpp/fory/util/buffer.h:1276–1281  ·  view source on GitHub ↗

Zero all bytes in padding

Source from the content-addressed store, hash-verified

1274
1275 /// Zero all bytes in padding
1276 void zero_padding() {
1277 // A zero-size buffer_ can have a null data pointer
1278 if (size_ != 0) {
1279 memset(data_, 0, static_cast<size_t>(size_));
1280 }
1281 }
1282
1283 /// \brief copy buffer contents into a new std::string
1284 /// \return std::string

Callers 1

array_data_fromFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected