checksum

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

// Package internal provides internal, not available in public API functions and structures used by tfdata package

Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checksummer

type Checksummer interface {
	Get(p []byte) uint32
	Verify(p []byte, cksm uint32) error
	Type() string
}

type CrcChecksummer

type CrcChecksummer struct{}

func NewCRCChecksummer

func NewCRCChecksummer() CrcChecksummer

func (CrcChecksummer) Get

func (CrcChecksummer) Get(p []byte) uint32

func (CrcChecksummer) Type

func (CrcChecksummer) Type() string

func (CrcChecksummer) Verify

func (c CrcChecksummer) Verify(p []byte, expected uint32) error

type InvalidChecksumError

type InvalidChecksumError struct {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL