History log of /haiku/src/kits/support/DataIO.cpp
Revision Date Author Comments
# b1f1332e 05-Apr-2018 Jérôme Duval <jerome.duval@gmail.com>

PackageKit: use the correct kernel headers.

The debug build of the packagefs kernel addon failed because user_memcpy had no type.
Using the correct headers for user_memcpy and IS_USER_ADDRESS fixed the issue.


# 8c44fc0f 08-Jan-2018 Jérôme Duval <jerome.duval@gmail.com>

PackageKit: tweak classes used by packagefs to write to user buffers.

when compiled in kernel mode, BMemoryIO::WriteAt() and BBufferDataReader::ReadData()
now check the buffer to write to, and eventually call user_memcpy() instead of memcpy().


# 8c767985 25-Mar-2016 Dario Casalinuovo <b.vitruvio@gmail.com>

Move MediaIO in it's own header


# 7b79e069 06-Mar-2016 Dario Casalinuovo <b.vitruvio@gmail.com>

Add prototype BMediaIO interface


# 8546c416 12-Jul-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

BPositionIO: Add {Read,Write}AtExactly()

Analoguous to {Read,Write}Exactly(), just for the *At() versions.


# b773d89e 29-Jun-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

BDataIO: Add Flush()


# 29e8fa59 24-Jun-2014 John Scipione <jscipione@gmail.com>

Style fixes to Support Kit files


# 5ede33ed 23-Jun-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

BDataIO: Hopefully fix native build


# 0d8b44e2 20-Jun-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

BDataIO: Add methods {Read,Write}Exactly()


# 98759fe6 20-Jun-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

BDataIO: Provide default implementations for Read()/Write()

This makes the interface somewhat more suitable for unidirectional use,
since one doesn't have to implement the other, not needed method.


# e76046d3 14-Jun-2011 Ingo Weinhold <ingo_weinhold@gmx.de>

Use casts that are more portable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42177 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a36e40dc 02-Apr-2007 Niels Sascha Reedijk <niels.reedijk@gmail.com>

Strip API documentation from these files: they are in separate dox files now.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20510 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 64f10d7d 29-Jun-2006 Axel Dörfler <axeld@pinc-software.de>

Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17981 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8cd531a9 26-May-2006 Stephan Aßmus <superstippi@gmx.de>

As Axel correctly pointed out, but even Ingo overlooked, we need
to export the previously virtual slot to be binary compatible...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17594 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 39c991c0 26-May-2006 Stephan Aßmus <superstippi@gmx.de>

Added BPositionIO::GetSize() and implemented it by means of Seek() and
Position(). This used up a virtual slot of BPositionIO. GetSize() needed to be
implemented in BFile, which uses the BStatable version as before. This should
hopefully be binary compatible. The only problem could be in source
compatibility when there are classes inheriting from BPositionIO implementing
their own GetSize().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17593 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fd8b9c0d 30-Oct-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Misc style changes

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14575 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d0733791 18-Jan-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Removed MallocIO.cpp as it wasn't being built, and BMallocIO implementation is in DataIO.cpp.
We might want to split them again, but keeping that old file around was counterproductive.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10824 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d2a9d5e5 03-Jun-2003 haydentech <haydentech@nowhere.fake>

Namespace- and gcc3-related fixes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3407 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2a515371 23-May-2003 ejakowatz <ejakowatz@nowhere.fake>

Minor tweaks.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3301 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 294bea18 07-Oct-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Removed a useless #include


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1430 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 979b68a7 06-Oct-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fixed a stupid bug in BString::CharacterEscape() and committed the correct version of DataIO.cpp (the former was an incorrect version)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1429 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fde69fce 07-Oct-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fixed a bug which crashed the BResource tests (sorry Ingo)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1428 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3e8f4f3d 27-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

More bugs fixed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1210 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c9ea1583 24-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Write() Returns B_NO_MEMORY if it cant allocate memory
iVS: ----------------------------------------------------------------------


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1162 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0c444b42 24-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Changed the way WriteAt() works, and fixed a small bug in SetSize()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1157 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 893d12fc 23-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Lots of bug fixes and code semplification


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1130 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bbe7fb54 22-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Removed a parenthesis which had jumped in involuntarily


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1128 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c505627f 23-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Switch to c++ type casts, some cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1127 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9a82280a 06-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Merged MallocIO.cpp with DataIO.cpp, some code refactoring,
and let a first, basic BString implementetation enter the game


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@988 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9078d476 28-Aug-2002 ejakowatz <ejakowatz@nowhere.fake>

Added Jack Burton's DataIO-related stuff and cleaned things up a bit.
Several files managed to get left out of the build process; changes to
support.src fixed that.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@930 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a38012 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8546c4160e158b5a7d17008fb5691e829886060d 12-Jul-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

BPositionIO: Add {Read,Write}AtExactly()

Analoguous to {Read,Write}Exactly(), just for the *At() versions.


# b773d89eba723039d3d293df77e106c128efa878 29-Jun-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

BDataIO: Add Flush()


# 29e8fa5922c9f9a5eb09a2fcc92e7fb321d4cc59 24-Jun-2014 John Scipione <jscipione@gmail.com>

Style fixes to Support Kit files


# 5ede33ed155c9b8f6460e095c5ad035b96b5fcb4 23-Jun-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

BDataIO: Hopefully fix native build


# 0d8b44e25bd0522eabde6baa1b49dff3db643976 20-Jun-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

BDataIO: Add methods {Read,Write}Exactly()


# 98759fe6e6024510ef4cf06cf8042c30ece9a615 20-Jun-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

BDataIO: Provide default implementations for Read()/Write()

This makes the interface somewhat more suitable for unidirectional use,
since one doesn't have to implement the other, not needed method.


# e76046d3f9ffeec1a155f314b61d91e7362a63cb 14-Jun-2011 Ingo Weinhold <ingo_weinhold@gmx.de>

Use casts that are more portable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42177 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a36e40dcda43808973f61a9800ce3ec7e5f85ced 02-Apr-2007 Niels Sascha Reedijk <niels.reedijk@gmail.com>

Strip API documentation from these files: they are in separate dox files now.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20510 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 64f10d7d89a783fbf09ac00ed2f570aa8fcea6f1 29-Jun-2006 Axel Dörfler <axeld@pinc-software.de>

Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17981 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8cd531a9babbc69c2bfd302dec4ff5a3573e9d35 26-May-2006 Stephan Aßmus <superstippi@gmx.de>

As Axel correctly pointed out, but even Ingo overlooked, we need
to export the previously virtual slot to be binary compatible...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17594 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 39c991c0f3ca33cffd9cf445b7bad619f8c6f23b 26-May-2006 Stephan Aßmus <superstippi@gmx.de>

Added BPositionIO::GetSize() and implemented it by means of Seek() and
Position(). This used up a virtual slot of BPositionIO. GetSize() needed to be
implemented in BFile, which uses the BStatable version as before. This should
hopefully be binary compatible. The only problem could be in source
compatibility when there are classes inheriting from BPositionIO implementing
their own GetSize().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17593 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fd8b9c0dd904cb50bcaecb4e6cb0f32f7968fa0d 30-Oct-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Misc style changes

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14575 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d0733791ae110422744aed1ca2d58aa0d352bbcd 18-Jan-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Removed MallocIO.cpp as it wasn't being built, and BMallocIO implementation is in DataIO.cpp.
We might want to split them again, but keeping that old file around was counterproductive.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10824 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d2a9d5e5fe28c264841ce68f7627f372bab25d0f 03-Jun-2003 haydentech <haydentech@nowhere.fake>

Namespace- and gcc3-related fixes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3407 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2a5153718e67fe4858264ea739b802bb021f6394 23-May-2003 ejakowatz <ejakowatz@nowhere.fake>

Minor tweaks.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3301 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 294bea18c1657791e2b586d0efd3a05ab026c350 07-Oct-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Removed a useless #include


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1430 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 979b68a75bfb10d2df2167191df7e8e6dc692ba7 06-Oct-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fixed a stupid bug in BString::CharacterEscape() and committed the correct version of DataIO.cpp (the former was an incorrect version)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1429 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fde69fce63693f5065a09f7b981ce367e6616ea2 07-Oct-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fixed a bug which crashed the BResource tests (sorry Ingo)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1428 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3e8f4f3d29ab36157e5ae797ace41777a7b4480a 27-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

More bugs fixed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1210 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c9ea158353ed1e8add57ff9ee37baea97692cd4c 24-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Write() Returns B_NO_MEMORY if it cant allocate memory
iVS: ----------------------------------------------------------------------


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1162 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0c444b426502f339bca1785082081a6e069e19c2 24-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Changed the way WriteAt() works, and fixed a small bug in SetSize()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1157 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 893d12fc2c18ad6b5d774e4c4cd926340f119448 23-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Lots of bug fixes and code semplification


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1130 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bbe7fb5430d4af7494963c02110f460e67257f7b 22-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Removed a parenthesis which had jumped in involuntarily


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1128 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c505627f53fd5ab8c341b35ad3cb7bcac5320411 23-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Switch to c++ type casts, some cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1127 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9a82280a11ed5cf42df9c25b5db122eb66fecde4 06-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Merged MallocIO.cpp with DataIO.cpp, some code refactoring,
and let a first, basic BString implementetation enter the game


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@988 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9078d4766ee3256aaaec5fe22a507a47a63cb9bd 28-Aug-2002 ejakowatz <ejakowatz@nowhere.fake>

Added Jack Burton's DataIO-related stuff and cleaned things up a bit.
Several files managed to get left out of the build process; changes to
support.src fixed that.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@930 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a380120846174213ccce9c4aab0dda17c72083 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96