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

.crc64nvme(str, previous = 0) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/aws-crt/checksums/crc.rb', line 23

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