
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
A NuGet package for C# that wraps libzstd.dll for compression and decompression using Zstandard.
This is a Wrappers based on P/Invoke implementations.
Functions implemented by calling facebook/zstd(release).
Zstd.Compress(byte[] src, int level)
Zstd.Decompress(byte[] src, int dstCapacity)
Zstd.CompressStream(Stream src, Stream dst, int level)
Zstd.DecompressStream(Stream src, Stream dst)
Zstd.CompressStream2SimpleArgs(Stream src, Stream dst, int level)
Zstd.DecompressStreamSimpleArgs(Stream src, Stream dst)
Zstd.FreeLibrary();
using CN.Lalaki.Zstd;
using System.IO;
using System;
// ...sample code
using (var cstream = File.OpenRead("path\\of\\example.zst"))
{
MemoryStream destream = new MemoryStream();
// Decompress Stream
Zstd.DecompressStream(cstream, destream);
var c2stream = new MemoryStream();
destream.Seek(0, SeekOrigin.Begin);
// Compress Stream
Zstd.CompressStream(destream, c2stream, 3);
// Decompress Byte Array
const int bufferSize = 1024 * 1024 * 20; // if 20MB, must be larger than original file size
var dData = Zstd.Decompress(c2stream.ToArray(), bufferSize);
Console.WriteLine("Decompress Size: {0}", dData.Length);
// Compress Byte Array
var cData = Zstd.Compress(dData, 3);
Console.WriteLine("Compress Size {0}", cData.Length);
}
FAQs
A NuGet package for C# that wraps libzstd.dll for compression and decompression using Zstandard.
We found that zstd.netframework demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.