aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
authordan sinclair <dj2@everburning.com>2019-04-10 10:09:33 -0400
committerGitHub <noreply@github.com>2019-04-10 10:09:33 -0400
commitae06ff8ee7b40f1e7e0741b102505c2d6513bdcf (patch)
treee9c636ecccf8dad6d68dac8491672fa3df27bde8 /src/buffer.cc
parentb322b20327af1d6665c606983c0de035ddee6c26 (diff)
downloadamber-ae06ff8ee7b40f1e7e0741b102505c2d6513bdcf.tar.gz
Simplify Format::GetBytesize; rename to SizeInBytes (#457)
The SizeInBytes name matches what is used in the DatumType class.
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index 95e0e07..d1c39fb 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -353,7 +353,7 @@ Result FormatBuffer::CopyData(const std::vector<Value>& data) {
}
i += static_cast<uint32_t>(components.size());
- ptr += format_->GetByteSize();
+ ptr += format_->SizeInBytes();
}
return {};
}