Sha256: c21adc1e77fda50066415f6d7eb10df2b77731a5ff7eeb2599c2bfae2528163e

Contents?: true

Size: 707 Bytes

Versions: 12

Compression:

Stored size: 707 Bytes

Contents

# frozen_string_literal: true

module Aws
  module Crt
    # High level Ruby abstractions for CRT Checksums functionality
    module Checksums
      def self.crc32(str, previous = 0)
        Aws::Crt::Native.crc32(
          FFI::MemoryPointer.from_string(str),
          str.size,
          previous
        )
      end

      def self.crc32c(str, previous = 0)
        Aws::Crt::Native.crc32c(
          FFI::MemoryPointer.from_string(str),
          str.size,
          previous
        )
      end

      def self.crc64nvme(str, previous = 0)
        Aws::Crt::Native.crc64nvme(
          FFI::MemoryPointer.from_string(str),
          str.size,
          previous
        )
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
aws-crt-0.4.0-x86_64-linux lib/aws-crt/checksums/crc.rb
aws-crt-0.4.0-x86_64-darwin lib/aws-crt/checksums/crc.rb
aws-crt-0.4.0-universal-java lib/aws-crt/checksums/crc.rb
aws-crt-0.4.0-arm64-darwin lib/aws-crt/checksums/crc.rb
aws-crt-0.4.0-aarch64-linux lib/aws-crt/checksums/crc.rb
aws-crt-0.4.0 lib/aws-crt/checksums/crc.rb
aws-crt-0.3.0 lib/aws-crt/checksums/crc.rb
aws-crt-0.3.0-x86_64-linux lib/aws-crt/checksums/crc.rb
aws-crt-0.3.0-x86_64-darwin lib/aws-crt/checksums/crc.rb
aws-crt-0.3.0-universal-java lib/aws-crt/checksums/crc.rb
aws-crt-0.3.0-arm64-darwin lib/aws-crt/checksums/crc.rb
aws-crt-0.3.0-aarch64-linux lib/aws-crt/checksums/crc.rb