INNER CODE UNIT · C++

_name

OxygenCobalt/Auxio · musikr/src/main/cpp/JInputStream.cpp:49

    _name = TagLib::String(env->GetStringUTFChars(*jName, nullptr));
}

JInputStream::~JInputStream() {
    // The implicit assumption is that inputStream is managed by the owner,
    // so we don't need to delete any references here
}

TagLib::FileName /* const char * */JInputStream::name() const {
    return _name.toCString(true);
}

jint JInputStream::readBlockImpl(TagLib::ByteVector &buf) {
    jobject wrappedByteBuffer = env->NewDirectByteBuffer(buf.data(),
            buf.size());
    if (wrappedByteBuffer == nullptr) {
        throw std::runtime_error("Failed to wrap ByteBuffer");
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…