memx

Crates.iomemx
lib.rsmemx
version0.2.0
created_at2021-05-12 08:26:33.699518+00
updated_at2025-09-24 06:58:59.913366+00
descriptionmemory functions like libc memcmp(), memchr(), memmem(), memcpy(), memset()
homepage
repositoryhttps://github.com/aki-akaguma/memx
max_upload_size
id396446
size1,179,224
(aki-akaguma)

documentation

README

memx

crate Docs Rust Version Apache2/MIT licensed Test ubu Test mac Test win

memx is a Rust library that provides a set of functions for memory manipulation, similar to the standard C library's <string.h>, but implemented in pure Rust and optimized for performance.

Features

  • A rich set of memory search, comparison, and manipulation functions.
  • Optimized implementations for x86 and x86-64 architectures using SSE2 and AVX2.
  • no_std compatibility for use in embedded systems and other resource-constrained environments.
  • A full suite of iterators for all search functions, providing an idiomatic Rust interface.

Benchmark results

forward search backward search
memchr() memrchr()
memnechr() memrnechr()
memmem() memrmem()
memchr_dbl() memrchr_dbl()
memchr_tpl() memrchr_tpl()
memchr_qpl() memrchr_qpl()
memnechr_dbl() memrnechr_dbl()
memnechr_tpl() memrnechr_tpl()
memnechr_qpl() memrnechr_qpl()
memory op
memcmp()
memeq()
memcpy()
memset()

Changelogs

This crate's changelog here.

License

This project is licensed under either of

at your option.

Commit count: 226

cargo fmt