Sha256: 1aaad1587d2141cd65bf4026a49dd107d27a408b70c2e0951166c5704889ba69

Contents?: true

Size: 544 Bytes

Versions: 9

Compression:

Stored size: 544 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
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
aws-crt-0.2.1-x64-mingw32 lib/aws-crt/checksums/crc.rb
aws-crt-0.2.0-x64-mingw32 lib/aws-crt/checksums/crc.rb
aws-crt-0.1.9-x64-mingw32 lib/aws-crt/checksums/crc.rb
aws-crt-0.1.8-x64-mingw32 lib/aws-crt/checksums/crc.rb
aws-crt-0.1.7-x64-mingw32 lib/aws-crt/checksums/crc.rb
aws-crt-0.1.6-x64-mingw32 lib/aws-crt/checksums/crc.rb
aws-crt-0.1.5-x64-mingw32 lib/aws-crt/checksums/crc.rb
aws-crt-0.1.4-x64-mingw32 lib/aws-crt/checksums/crc.rb
aws-crt-0.1.2-x86_64-mingw32 lib/aws-crt/checksums/crc.rb