pub fn create(path: &str, size_in_bytes: u32) -> Result<Self> {
        let file = OpenOptions::new()
            .read(true)
            .write(true)
            .create(true)
            .truncate(true)
            .open(path)?;

        file.set_len(u64::from(BEGINNING + size_in_bytes + 8))?;

        Ok(Self(View::try_new(Arc::new(UnsafeCell::new(
            Buffer::try_new(path, map(&file)?, None)?,
        )))?))
    }
/// Creates a new [`SharedRingBuffer`](struct.SharedRingBuffer.html) backed by a file with the specified name.
///
/// The file will be created if it does not already exist or truncated otherwise.
///
/// Once this function completes successfully, the same path may be used to create one or more corresponding
/// instances in other processes using the [`SharedRingBuffer::open`](struct.SharedRingBuffer.html#method.open)
/// method.
Creates a new [`SharedRingBuffer`](struct.SharedRingBuffer.html) backed by a file with the specified name.
The file will be created if it does not already exist or truncated otherwise.

Once this function completes successfully, the same path may be used to create one or more corresponding
instances in other processes using the [`SharedRingBuffer::open`](struct.SharedRingBuffer.html#method.open)
method.
Creates a new [ ` SharedRingBuffer ` ] ( struct . SharedRingBuffer . html ) backed by a file with the specified name . The file will be created if it does not already exist or truncated otherwise . Once this function completes successfully the same path may be used to create one or more corresponding instances in other processes using the [ ` SharedRingBuffer :: open ` ] ( struct . SharedRingBuffer . html#method . open ) method .
pub fn create(path: &str, size_in_bytes: u32) -> Result<Self> {
        let file = OpenOptions::new()
            .read(true)
            .write(true)
            .create(true)
            .truncate(true)
            .open(path)?;
        file.set_len(u64::from(BEGINNING + size_in_bytes + 8))?;
        Ok(Self(View::try_new(Arc::new(UnsafeCell::new(
            Buffer::try_new(path, map(&file)?, None)?,
        )))?))
    }
pub fn create ( path : & str , size_in_bytes : u32 ) -> Result < Self > { let file = OpenOptions :: new ( ) . read ( true ) . write ( true ) . create ( true ) . truncate ( true ) . open ( path ) ? ; file . set_len ( u64 :: from ( BEGINNING + size_in_bytes + 8 ) ) ? ; Ok ( Self ( View :: try_new ( Arc :: new ( UnsafeCell :: new ( Buffer :: try_new ( path , map ( & file ) ? , None ) ? , ) ) ) ? ) ) }
Creates a new [`SharedRingBuffer`](struct.SharedRingBuffer.html) backed by a file with the specified name.
Creates a new [ ` SharedRingBuffer ` ] ( struct . SharedRingBuffer . html ) backed by a file with the specified name .
path
&str
size_in_bytes
u32
path
&str
size_in_bytes
u32