Skip to content

Commit d9e31d2

Browse files
committed
VER: Release 0.34.1
1 parent 7489b09 commit d9e31d2

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## 0.34.1 - TBD
3+
## 0.34.1 - 2025-04-29
44

55
### Enhancements
66
- Added `InstitutionalPrioritization` variant to `MatchingAlgorithm`

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.24..4.0)
66

77
project(
88
databento
9-
VERSION 0.34.0
9+
VERSION 0.34.1
1010
LANGUAGES CXX
1111
DESCRIPTION "Official Databento client library"
1212
)

pkg/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maintainer: Databento <support@databento.com>
22
_pkgname=databento-cpp
33
pkgname=databento-cpp-git
4-
pkgver=0.34.0
4+
pkgver=0.34.1
55
pkgrel=1
66
pkgdesc="Official C++ client for Databento"
77
arch=('any')

src/dbn_decoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ databento::Metadata DbnDecoder::DecodeMetadata() {
190190
input_->ReadExact(read_buffer_.data(), read_buffer_.size());
191191
buffer_idx_ = read_buffer_.size();
192192
auto metadata = DbnDecoder::DecodeMetadataFields(
193-
version_, read_buffer_.data(), &*read_buffer_.cend());
193+
version_, read_buffer_.data(), read_buffer_.data() + read_buffer_.size());
194194
ts_out_ = metadata.ts_out;
195195
metadata.Upgrade(upgrade_policy_);
196196
return metadata;

src/live_blocking.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,16 @@ void LiveBlocking::Subscribe(std::string_view sub_msg,
138138
databento::Metadata LiveBlocking::Start() {
139139
client_.WriteAll("start_session\n");
140140
client_.ReadExact(buffer_.WriteBegin(), kMetadataPreludeSize);
141+
buffer_.WriteBegin() += kMetadataPreludeSize;
141142
const auto [version, size] = DbnDecoder::DecodeMetadataVersionAndSize(
142143
buffer_.ReadBegin(), kMetadataPreludeSize);
143-
std::vector<std::byte> meta_buffer(size);
144-
client_.ReadExact(meta_buffer.data(), size);
145-
auto metadata = DbnDecoder::DecodeMetadataFields(version, meta_buffer.data(),
146-
&*meta_buffer.end());
144+
buffer_.ReadBegin() += kMetadataPreludeSize;
145+
buffer_.Reserve(size);
146+
client_.ReadExact(buffer_.WriteBegin(), size);
147+
buffer_.WriteBegin() += size;
148+
auto metadata = DbnDecoder::DecodeMetadataFields(version, buffer_.ReadBegin(),
149+
buffer_.ReadEnd());
150+
buffer_.ReadBegin() += size;
147151
version_ = metadata.version;
148152
metadata.Upgrade(upgrade_policy_);
149153
return metadata;

0 commit comments

Comments
 (0)