MCPcopy Create free account
hub / github.com/apache/arrow / is_readonly

Method is_readonly

cpp/src/arrow/c/dlpack.cc:324–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322 bool flag_is_set(uint8_t bits) const { return (ptr_->flags & bits) == bits; }
323
324 bool is_readonly() const { return flag_is_set(DLPACK_FLAG_BITMASK_READ_ONLY); }
325
326 int32_t byte_width() const { return tensor().dtype.bits / 8; }
327

Callers 1

ImportBufferFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected