Skip to content

Commit

Permalink
export Bytes type through DataRowBody::storage_bytes method.
Browse files Browse the repository at this point in the history
  • Loading branch information
fakeshadow committed Feb 24, 2023
1 parent 4bae134 commit eb086d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions postgres-protocol/src/message/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,11 @@ impl DataRowBody {
pub fn buffer(&self) -> &[u8] {
&self.storage
}

#[inline]
pub fn storage_bytes(&self) -> &Bytes {
&self.storage
}
}

pub struct DataRowRanges<'a> {
Expand Down

0 comments on commit eb086d3

Please sign in to comment.