/// Start writing a stream.
///
/// Panics if the object writer is not indirect.
Start writing a stream.
Panics if the object writer is not indirect.
Start writing a stream . Panics if the object writer is not indirect .
pub(crate) fn start(obj: Obj<'a>, data: &'a [u8]) -> Self {
        assert!(obj.indirect);
        let mut dict = obj.dict();
        dict.pair(
            Name(b"Length"),
            i32::try_from(data.len()).unwrap_or_else(|_| {
                panic!("data length (is `{}`) must be <= i32::MAX", data.len());
            }),
        );
        Self { dict: ManuallyDrop::new(dict), data }
    }
pub ( crate ) fn start ( obj : Obj < ' a > , data : & ' a [ u8 ] ) -> Self { assert ! ( obj indirect ) ; let mut dict = obj . dict ( ) ; dict . pair ( Name ( b" " ) , i32 :: try_from ( data . len ( ) ) . unwrap_or_else ( | _ | { panic ! ( " " data len ( ) ) ; } ) , ) ; Self { dict : ManuallyDrop :: new ( dict ) , data } }
Start writing a stream.
Start writing a stream .
obj
Obj<'a>
data
&'a [u8]