[Liblas-commits] hg: Restored use of std::size_t to uint32_t in
index impl.
liblas-commits at liblas.org
liblas-commits at liblas.org
Mon Oct 19 19:31:53 EDT 2009
changeset b3abc99e4902 in /home/www/liblas.org/hg
details: http://hg.liblas.org/main/hg?cmd=changeset;node=b3abc99e4902
summary: Restored use of std::size_t to uint32_t in index impl.
diffstat:
include/liblas/index/storage.hpp | 4 ++--
src/index/storage.cpp | 4 ++--
src/index/visitor.cpp | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diffs (47 lines):
diff -r d44e9250826f -r b3abc99e4902 include/liblas/index/storage.hpp
--- a/include/liblas/index/storage.hpp Tue Oct 20 00:24:38 2009 +0100
+++ b/include/liblas/index/storage.hpp Tue Oct 20 00:31:40 2009 +0100
@@ -70,8 +70,8 @@
virtual ~VLRStorageManager();
- virtual void loadByteArray(const SpatialIndex::id_type id, std::size_t& len, uint8_t** data);
- virtual void storeByteArray(SpatialIndex::id_type& id, const std::size_t len, const uint8_t* const data);
+ virtual void loadByteArray(const SpatialIndex::id_type id, uint32_t& len, uint8_t** data);
+ virtual void storeByteArray(SpatialIndex::id_type& id, const uint32_t len, const uint8_t* const data);
virtual void deleteByteArray(const SpatialIndex::id_type id);
LASVariableRecord* getVLR() const;
diff -r d44e9250826f -r b3abc99e4902 src/index/storage.cpp
--- a/src/index/storage.cpp Tue Oct 20 00:24:38 2009 +0100
+++ b/src/index/storage.cpp Tue Oct 20 00:31:40 2009 +0100
@@ -79,7 +79,7 @@
}
}
-void VLRStorageManager::loadByteArray(const SpatialIndex::id_type id, std::size_t& len, uint8_t** data)
+void VLRStorageManager::loadByteArray(const SpatialIndex::id_type id, uint32_t& len, uint8_t** data)
{
LASVariableRecord* v = 0;
try
@@ -100,7 +100,7 @@
std::memcpy(*data, &vlrdata[0], len);
}
-void VLRStorageManager::storeByteArray(SpatialIndex::id_type& id, const std::size_t len, const uint8_t* const data)
+void VLRStorageManager::storeByteArray(SpatialIndex::id_type& id, const uint32_t len, const uint8_t* const data)
{
if (id == SpatialIndex::StorageManager::NewPage)
{
diff -r d44e9250826f -r b3abc99e4902 src/index/visitor.cpp
--- a/src/index/visitor.cpp Tue Oct 20 00:24:38 2009 +0100
+++ b/src/index/visitor.cpp Tue Oct 20 00:31:40 2009 +0100
@@ -82,7 +82,7 @@
// data should be an array of characters representing a Region as a string.
uint8_t* pData = 0;
- std::size_t cLen = 0;
+ uint32_t cLen = 0;
d.getData(cLen, &pData);
// do something.
//string s = reinterpret_cast<char*>(pData);
More information about the Liblas-commits
mailing list