udata

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes

type Bytes struct {
	// contains filtered or unexported fields
}

func NewBytes

func NewBytes(b []byte) *Bytes

func (*Bytes) Int32

func (b *Bytes) Int32() int32

func (*Bytes) Position

func (b *Bytes) Position() int32

func (*Bytes) ReadHeader

func (b *Bytes) ReadHeader(isValid func(info *DataInfo) bool) error

func (*Bytes) Skip

func (b *Bytes) Skip(size int32)

func (*Bytes) Uint16

func (b *Bytes) Uint16() uint16

func (*Bytes) Uint16Slice

func (b *Bytes) Uint16Slice(size int32) []uint16

func (*Bytes) Uint32

func (b *Bytes) Uint32() uint32

func (*Bytes) Uint32Slice

func (b *Bytes) Uint32Slice(size int32) []uint32

func (*Bytes) Uint8

func (b *Bytes) Uint8() uint8

func (*Bytes) Uint8Slice

func (b *Bytes) Uint8Slice(n int32) []uint8

type DataInfo

type DataInfo struct {
	/** sizeof(UDataInfo)
	 *  @stable ICU 2.0 */
	Size uint16

	/** unused, set to 0
	 *  @stable ICU 2.0*/
	ReservedWord uint16

	/* platform data properties */
	/** 0 for little-endian machine, 1 for big-endian
	 *  @stable ICU 2.0 */
	IsBigEndian uint8

	/** see U_CHARSET_FAMILY values in utypes.h
	 *  @stable ICU 2.0*/
	CharsetFamily uint8

	/** sizeof(UChar), one of { 1, 2, 4 }
	 *  @stable ICU 2.0*/
	SizeofUChar uint8

	/** unused, set to 0
	 *  @stable ICU 2.0*/
	ReservedByte uint8

	/** data format identifier
	 *  @stable ICU 2.0*/
	DataFormat [4]uint8

	/** versions: [0] major [1] minor [2] milli [3] micro
	 *  @stable ICU 2.0*/
	FormatVersion [4]uint8

	/** versions: [0] major [1] minor [2] milli [3] micro
	 *  @stable ICU 2.0*/
	DataVersion [4]uint8
}

Jump to

Keyboard shortcuts

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