utils

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteOrder

type ByteOrder int8
const (
	UnknownEndian ByteOrder = iota
	LittleEndian
	BigEndian
)

func BinaryOrder

func BinaryOrder(buf []byte) ByteOrder

BinaryOrder returns the binary.ByteOrder for a Tiff Header based on 4 bytes from the buf.

Good reference: CIPA DC-008-2016; JEITA CP-3451D -> http://www.cipa.jp/std/documents/e/DC-008-Translation-2016-E.pdf

func (ByteOrder) PutUint16

func (bo ByteOrder) PutUint16(b []byte, v uint16)

func (ByteOrder) PutUint32

func (bo ByteOrder) PutUint32(b []byte, v uint32)

func (ByteOrder) PutUint64

func (bo ByteOrder) PutUint64(b []byte, v uint64)

func (ByteOrder) String

func (bo ByteOrder) String() string

func (ByteOrder) Uint16

func (bo ByteOrder) Uint16(buf []byte) uint16

func (ByteOrder) Uint32

func (bo ByteOrder) Uint32(buf []byte) uint32

func (ByteOrder) Uint64

func (bo ByteOrder) Uint64(buf []byte) uint64

Jump to

Keyboard shortcuts

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