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

Function as_writable_bytes

util/generic/array_ref.h:265–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263 */
264template <typename T>
265TArrayRef<char> as_writable_bytes(TArrayRef<T> arrayRef Y_LIFETIME_BOUND) noexcept {
266 return TArrayRef<char>(
267 reinterpret_cast<char*>(arrayRef.data()),
268 arrayRef.size_bytes());
269}
270
271template <class Range>
272constexpr TArrayRef<const typename Range::value_type> MakeArrayRef(const Range& range) noexcept {

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 2

size_bytesMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected