🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

zune-bmp

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zune-bmp

Source
Cargo
Version
0.4.0
Version published
Maintainers
1
Created
Source

zune-bmp

A lean, mean and green BMP decoder.

This crate contains a fast implemtnation of a BMP decoder with battery included support for the esoteric parts of the spec

Features

  • RLE support
  • 1-bit,4-bit,8-bit,16-bit,24-bit and 32-bit support
  • Performant

Usage

First add the project to your library/binary

zune-bmp = "0.4" # Or use cargo add zune-bmp

Then you can toy with the other configs

use zune_bmp::BmpDecoder;
use zune_bmp::BmpDecoderErrors;

fn main()->Result<(),BmpDecodeErrors>{
    let decoder:Vec<u8> = BmpDecoder::new(b"BMP").decode()?;

}

Security

The decoder is continuously fuzz tested in CI to ensure it does not crash on malicious input in case a sample causes it to crash, an issue would be welcome.

FAQs

Package last updated on 16 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts