|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
|
nodiscard |
Read up to limit leading bytes of a file, or std::nullopt if it cannot be opened.
Definition at line 184 of file TensorCodec.cpp.
References MayaFlux::IO::Detail::FileHead::bytes, and MayaFlux::IO::Detail::FileHead::file_size.
Referenced by MayaFlux::IO::NpyReader::can_read(), MayaFlux::IO::SafetensorsReader::can_read(), and MayaFlux::IO::TensorFormatRegistry::detect().