io

package
v0.0.0-...-ae8e47d Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package io offers serialization interfaces for gnark objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnsafeReaderFrom

type UnsafeReaderFrom interface {
	UnsafeReadFrom(r io.Reader) (int64, error)
}

UnsafeReaderFrom is the interface that wraps the UnsafeReadFrom method.

UnsafeReadFrom reads data from reader but doesn't perform any checks, such as subgroup checks for elliptic curves points for example.

type WriterRawTo

type WriterRawTo interface {
	WriteRawTo(w io.Writer) (n int64, err error)
}

WriterRawTo is the interface that wraps the WriteRawTo method.

WriteRawTo writes data to w until there's no more data to write or when an error occurs. The return value n is the number of bytes written. Any error encountered during the write is also returned.

WriteRawTo will not compress the data (as opposed to WriteTo)

Jump to

Keyboard shortcuts

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