Code Monkey home page Code Monkey logo

Comments (5)

anthony-tuininga avatar anthony-tuininga commented on July 27, 2024

Provided the buffer size you provide is adequate to support the number of characters requested there should be no reason for a short read, but I'll confirm that by asking internally.

Note that OCI considers characters to be the same as UCS-2 codepoints. This is true in most cases, but for supplementary characters it is not and the numbers returned are inaccurate. You also have to take care not to split characters.

from odpi.

kubo avatar kubo commented on July 27, 2024

Thank you!
Low level functions such as read on unix and ReadFile on Windows succeed when more than one byte is read. They may return before specified amount of data arrive especially when they read packets from network. I know that high level functions tend to wait until all requested data arrive. However it isn't documented in the OCI manual about OCILobRead2(). If OCILobReads() didn't return the number of characters read, I didn't worry about it.

from odpi.

anthony-tuininga avatar anthony-tuininga commented on July 27, 2024

I have confirmed that OCI does not perform short reads, provided that there are sufficient characters available to read in the LOB and the provided buffer is sufficiently large to accept all of the characters requested. So your code you provided above should work just fine!

from odpi.

kubo avatar kubo commented on July 27, 2024

Thanks a lot and sorry for bothering you.

from odpi.

anthony-tuininga avatar anthony-tuininga commented on July 27, 2024

You're welcome. And you're not bothering me at all! You've been a tremendous help asking questions! :-)

from odpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.