Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bytebuffer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bytebuffer

  • 0.1.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Gem Version

ByteBuffer

The ByteBuffer Ruby gem provides a powerful and flexible interface for buffered IO data, wrapping the bytebuffer crate using FFI.

Overview

ByteBuffer offers an interface to the compiled rust library for manipulating buffered IO, e.g. reading and writing bits, bytes, integers of various sizes, and floats.

Getting Started

Dependencies

The following packages are required to build and use the gem:

  • ruby >= 3.0
  • rustc
  • cargo

Ensure the following toolchains are installed via rustup:

  • x86_64-unknown-linux-gnu
Usage

A basic example of the ByteBuffer in action can be found below:

require 'bytebuffer'

bb = ByteBuffer.new
bb.write_i32(-128)
puts bb.read_i32 # Output: -128
bb.free

FAQs

Package last updated on 20 Jul 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc