Module: Aws::Crt::Checksums

Defined in:
lib/aws-crt/checksums/crc.rb

Overview

High level Ruby abstractions for CRT Checksums functionality

Class Method Summary collapse

Class Method Details

.crc32(str, previous = 0) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/aws-crt/checksums/crc.rb', line 7

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

.crc32c(str, previous = 0) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/aws-crt/checksums/crc.rb', line 15

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