pub enum Signature {
Uncompressed,
ZlibCompressed,
LzmaCompressed,
}
Expand description
An enum representing all the valid signatures of a SWF file.
As of the latest SWF specification, there are 3 valid signatures a SWF file can have. The first three bytes of a SWF file act as the magic numbers, FWS (SWF backwards) was defined with the original specification, and designates an uncompressed SWF file. CWS was introduced with SWF 6, and specifies that all bytes beyond the first 8 are compressed using zlib. ZWS was added with SWF 13, and displays the same concept, but with LZMA instead of zlib.
Variants§
Uncompressed
A signature of FWS, meaning an uncompressed SWF file.
ZlibCompressed
A signature of CWS, meaning a zlib-compressed SWF file.
LzmaCompressed
A signature of ZWS, meaning an LZMA-compressed SWF file.
Trait Implementations§
impl Copy for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more