• Noel Grandin's avatar
    clean up UNO available() implementations · 00850e3f
    Noel Grandin yazdı
    There seems to be some confusion here. available() is actually the
    number of bytes that can be read without blocking, but most
    implementations seems to be just returning the number of bytes remaining
    in the stream. Since we're doing that, let's do it properly.
    
    (*) some of them were just casting, instead of clamping, which will
    return wrong values sometimes.
    (*) FileStreamWrapper_Impl/OInputStreamWrapper/OTempFileService were
    doing unnecessary work, instead of just asking the underlying SvStream
    for it's remaining size
    
    Change-Id: I3ef26e0363e989ed3e00be0fdb993e1cdeb7819f
    Reviewed-on: https://gerrit.libreoffice.org/57264
    Tested-by: Jenkins
    Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
    00850e3f
Adı
Son kayıt (commit)
Son güncelleme
..
inc Loading commit data...
qa Loading commit data...
source Loading commit data...
util Loading commit data...
CppunitTest_sot_test_sot.mk Loading commit data...
JunitTest_sot_complex.mk Loading commit data...
Library_sot.mk Loading commit data...
Makefile Loading commit data...
Module_sot.mk Loading commit data...
README Loading commit data...