tiberius/tds/codec/column_data/binary.rs
1use std::borrow::Cow;
2
3use crate::{sql_read_bytes::SqlReadBytes, ColumnData};
4
5pub(crate) async fn decode<R>(src: &mut R, len: usize) -> crate::Result<ColumnData<'static>>
6where
7 R: SqlReadBytes + Unpin,
8{
9 let data = super::plp::decode(src, len).await?.map(Cow::from);
10
11 Ok(ColumnData::Binary(data))
12}