Skip to content

Commit 3007dd8

Browse files
authored
Merge pull request sfackler#1000 from fakeshadow/protocol/export_bytes
export Bytes type through DataRowBody::storage_bytes method.
2 parents 4f54069 + eb086d3 commit 3007dd8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

postgres-protocol/src/message/backend.rs

+5
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,11 @@ impl DataRowBody {
544544
pub fn buffer(&self) -> &[u8] {
545545
&self.storage
546546
}
547+
548+
#[inline]
549+
pub fn storage_bytes(&self) -> &Bytes {
550+
&self.storage
551+
}
547552
}
548553

549554
pub struct DataRowRanges<'a> {

0 commit comments

Comments
 (0)