MCPcopy Create free account
hub / github.com/catboost/catboost / as_bytes

Function as_bytes

util/generic/array_ref.h:253–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251 */
252template <typename T>
253TArrayRef<const char> as_bytes(TArrayRef<T> arrayRef Y_LIFETIME_BOUND) noexcept {
254 return TArrayRef<const char>(
255 reinterpret_cast<const char*>(arrayRef.data()),
256 arrayRef.size_bytes());
257}
258
259/**
260 * Obtains a view to the writable object representation of the elements of the TArrayRef arrayRef.

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 2

size_bytesMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected