INNER CODE UNIT · C++

jName

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

    JStringRef jName = { env, reinterpret_cast<jstring>(env->CallObjectMethod(
            jInputStream, jInputStreamNameMethod)) };
    _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) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…