vortex_buffer/
memmap2.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4use bytes::Bytes;
5use memmap2::Mmap;
6
7use crate::ByteBuffer;
8
9impl From<Mmap> for ByteBuffer {
10    fn from(value: Mmap) -> Self {
11        ByteBuffer::from(Bytes::from_owner(value))
12    }
13}