summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/DataBufferHeap.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-03-14 18:31:44 +0000
committerGreg Clayton <gclayton@apple.com>2013-03-14 18:31:44 +0000
commitfaac1118702d8fa7bbd639d23a2c9f79e4db2f0c (patch)
treeac277bdce3db205dab200956a7a23f09fdf9899f /lldb/source/Core/DataBufferHeap.cpp
parent29a0da3551afa5cc9c172c7057d255eae8df0e83 (diff)
downloadbcm5719-llvm-faac1118702d8fa7bbd639d23a2c9f79e4db2f0c.tar.gz
bcm5719-llvm-faac1118702d8fa7bbd639d23a2c9f79e4db2f0c.zip
<rdar://problem/13421412>
Many "byte size" members and variables were using a mixture of uint32_t and size_t. Switching over to using uint64_t everywhere. llvm-svn: 177091
Diffstat (limited to 'lldb/source/Core/DataBufferHeap.cpp')
-rw-r--r--lldb/source/Core/DataBufferHeap.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Core/DataBufferHeap.cpp b/lldb/source/Core/DataBufferHeap.cpp
index a93427ff858..3692aa90a5b 100644
--- a/lldb/source/Core/DataBufferHeap.cpp
+++ b/lldb/source/Core/DataBufferHeap.cpp
@@ -23,7 +23,7 @@ DataBufferHeap::DataBufferHeap () :
// Initialize this class with "n" characters and fill the buffer
// with "ch".
//----------------------------------------------------------------------
-DataBufferHeap::DataBufferHeap (size_t n, uint8_t ch) :
+DataBufferHeap::DataBufferHeap (lldb::offset_t n, uint8_t ch) :
m_data(n, ch)
{
}
@@ -32,7 +32,7 @@ DataBufferHeap::DataBufferHeap (size_t n, uint8_t ch) :
// Initialize this class with a copy of the "n" bytes from the "bytes"
// buffer.
//----------------------------------------------------------------------
-DataBufferHeap::DataBufferHeap (const void *src, size_t src_len) :
+DataBufferHeap::DataBufferHeap (const void *src, lldb::offset_t src_len) :
m_data()
{
CopyData (src, src_len);
@@ -73,7 +73,7 @@ DataBufferHeap::GetBytes () const
//----------------------------------------------------------------------
// Return the number of bytes this object currently contains.
//----------------------------------------------------------------------
-size_t
+uint64_t
DataBufferHeap::GetByteSize () const
{
return m_data.size();
@@ -84,15 +84,15 @@ DataBufferHeap::GetByteSize () const
// Sets the number of bytes that this object should be able to
// contain. This can be used prior to copying data into the buffer.
//----------------------------------------------------------------------
-size_t
-DataBufferHeap::SetByteSize (size_t new_size)
+uint64_t
+DataBufferHeap::SetByteSize (uint64_t new_size)
{
m_data.resize(new_size);
return m_data.size();
}
void
-DataBufferHeap::CopyData (const void *src, size_t src_len)
+DataBufferHeap::CopyData (const void *src, uint64_t src_len)
{
const uint8_t *src_u8 = (const uint8_t *)src;
if (src && src_len > 0)
OpenPOWER on IntegriCloud