primitive

package
v0.0.0-...-5477640 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0, MIT Imports: 7 Imported by: 59

Documentation

Overview

Package primitive defines marshal.Marshallable implementations for primitive types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocateInt16

func AllocateInt16(x int16) marshal.Marshallable

AllocateInt16 returns x as a marshallable.

func AllocateInt32

func AllocateInt32(x int32) marshal.Marshallable

AllocateInt32 returns x as a marshallable.

func AllocateInt64

func AllocateInt64(x int64) marshal.Marshallable

AllocateInt64 returns x as a marshallable.

func AllocateInt8

func AllocateInt8(x int8) marshal.Marshallable

AllocateInt8 returns x as a marshallable.

func AllocateUint16

func AllocateUint16(x uint16) marshal.Marshallable

AllocateUint16 returns x as a marshallable.

func AllocateUint32

func AllocateUint32(x uint32) marshal.Marshallable

AllocateUint32 returns x as a marshallable.

func AllocateUint64

func AllocateUint64(x uint64) marshal.Marshallable

AllocateUint64 returns x as a marshallable.

func AllocateUint8

func AllocateUint8(x uint8) marshal.Marshallable

AllocateUint8 returns x as a marshallable.

func AsByteSlice

func AsByteSlice(b []byte) marshal.Marshallable

AsByteSlice returns b as a marshallable. Note that this allocates a new slice header, but does not copy the slice contents.

func CopyByteSliceIn

func CopyByteSliceIn(cc marshal.CopyContext, addr hostarch.Addr, dst *[]byte) (int, error)

CopyByteSliceIn is a convenient wrapper for copying in a []byte from the task's memory.

func CopyByteSliceOut

func CopyByteSliceOut(cc marshal.CopyContext, addr hostarch.Addr, src []byte) (int, error)

CopyByteSliceOut is a convenient wrapper for copying out a []byte to the task's memory.

func CopyInt16In

func CopyInt16In(cc marshal.CopyContext, addr hostarch.Addr, dst *int16) (int, error)

CopyInt16In is a convenient wrapper for copying in an int16 from the task's memory.

func CopyInt16Out

func CopyInt16Out(cc marshal.CopyContext, addr hostarch.Addr, src int16) (int, error)

CopyInt16Out is a convenient wrapper for copying out an int16 to the task's memory.

func CopyInt16SliceIn

func CopyInt16SliceIn(cc marshal.CopyContext, addr hostarch.Addr, dst []int16) (int, error)

CopyInt16SliceIn copies in a slice of int16 objects from the task's memory.

func CopyInt16SliceOut

func CopyInt16SliceOut(cc marshal.CopyContext, addr hostarch.Addr, src []int16) (int, error)

CopyInt16SliceOut copies a slice of int16 objects to the task's memory.

func CopyInt32In

func CopyInt32In(cc marshal.CopyContext, addr hostarch.Addr, dst *int32) (int, error)

CopyInt32In is a convenient wrapper for copying in an int32 from the task's memory.

func CopyInt32Out

func CopyInt32Out(cc marshal.CopyContext, addr hostarch.Addr, src int32) (int, error)

CopyInt32Out is a convenient wrapper for copying out an int32 to the task's memory.

func CopyInt32SliceIn

func CopyInt32SliceIn(cc marshal.CopyContext, addr hostarch.Addr, dst []int32) (int, error)

CopyInt32SliceIn copies in a slice of int32 objects from the task's memory.

func CopyInt32SliceOut

func CopyInt32SliceOut(cc marshal.CopyContext, addr hostarch.Addr, src []int32) (int, error)

CopyInt32SliceOut copies a slice of int32 objects to the task's memory.

func CopyInt64In

func CopyInt64In(cc marshal.CopyContext, addr hostarch.Addr, dst *int64) (int, error)

CopyInt64In is a convenient wrapper for copying in an int64 from the task's memory.

func CopyInt64Out

func CopyInt64Out(cc marshal.CopyContext, addr hostarch.Addr, src int64) (int, error)

CopyInt64Out is a convenient wrapper for copying out an int64 to the task's memory.

func CopyInt64SliceIn

func CopyInt64SliceIn(cc marshal.CopyContext, addr hostarch.Addr, dst []int64) (int, error)

CopyInt64SliceIn copies in a slice of int64 objects from the task's memory.

func CopyInt64SliceOut

func CopyInt64SliceOut(cc marshal.CopyContext, addr hostarch.Addr, src []int64) (int, error)

CopyInt64SliceOut copies a slice of int64 objects to the task's memory.

func CopyInt8In

func CopyInt8In(cc marshal.CopyContext, addr hostarch.Addr, dst *int8) (int, error)

CopyInt8In is a convenient wrapper for copying in an int8 from the task's memory.

func CopyInt8Out

func CopyInt8Out(cc marshal.CopyContext, addr hostarch.Addr, src int8) (int, error)

CopyInt8Out is a convenient wrapper for copying out an int8 to the task's memory.

func CopyInt8SliceIn

func CopyInt8SliceIn(cc marshal.CopyContext, addr hostarch.Addr, dst []int8) (int, error)

CopyInt8SliceIn copies in a slice of int8 objects from the task's memory.

func CopyInt8SliceOut

func CopyInt8SliceOut(cc marshal.CopyContext, addr hostarch.Addr, src []int8) (int, error)

CopyInt8SliceOut copies a slice of int8 objects to the task's memory.

func CopyStringIn

func CopyStringIn(cc marshal.CopyContext, addr hostarch.Addr, dst *string) (int, error)

CopyStringIn is a convenient wrapper for copying in a string from the task's memory.

func CopyStringOut

func CopyStringOut(cc marshal.CopyContext, addr hostarch.Addr, src string) (int, error)

CopyStringOut is a convenient wrapper for copying out a string to the task's memory.

func CopyUint16In

func CopyUint16In(cc marshal.CopyContext, addr hostarch.Addr, dst *uint16) (int, error)

CopyUint16In is a convenient wrapper for copying in a uint16 from the task's memory.

func CopyUint16Out

func CopyUint16Out(cc marshal.CopyContext, addr hostarch.Addr, src uint16) (int, error)

CopyUint16Out is a convenient wrapper for copying out a uint16 to the task's memory.

func CopyUint16SliceIn

func CopyUint16SliceIn(cc marshal.CopyContext, addr hostarch.Addr, dst []uint16) (int, error)

CopyUint16SliceIn copies in a slice of uint16 objects from the task's memory.

func CopyUint16SliceOut

func CopyUint16SliceOut(cc marshal.CopyContext, addr hostarch.Addr, src []uint16) (int, error)

CopyUint16SliceOut copies a slice of uint16 objects to the task's memory.

func CopyUint32In

func CopyUint32In(cc marshal.CopyContext, addr hostarch.Addr, dst *uint32) (int, error)

CopyUint32In is a convenient wrapper for copying in a uint32 from the task's memory.

func CopyUint32Out

func CopyUint32Out(cc marshal.CopyContext, addr hostarch.Addr, src uint32) (int, error)

CopyUint32Out is a convenient wrapper for copying out a uint32 to the task's memory.

func CopyUint32SliceIn

func CopyUint32SliceIn(cc marshal.CopyContext, addr hostarch.Addr, dst []uint32) (int, error)

CopyUint32SliceIn copies in a slice of uint32 objects from the task's memory.

func CopyUint32SliceOut

func CopyUint32SliceOut(cc marshal.CopyContext, addr hostarch.Addr, src []uint32) (int, error)

CopyUint32SliceOut copies a slice of uint32 objects to the task's memory.

func CopyUint64In

func CopyUint64In(cc marshal.CopyContext, addr hostarch.Addr, dst *uint64) (int, error)

CopyUint64In is a convenient wrapper for copying in a uint64 from the task's memory.

func CopyUint64Out

func CopyUint64Out(cc marshal.CopyContext, addr hostarch.Addr, src uint64) (int, error)

CopyUint64Out is a convenient wrapper for copying out a uint64 to the task's memory.

func CopyUint64SliceIn

func CopyUint64SliceIn(cc marshal.CopyContext, addr hostarch.Addr, dst []uint64) (int, error)

CopyUint64SliceIn copies in a slice of uint64 objects from the task's memory.

func CopyUint64SliceOut

func CopyUint64SliceOut(cc marshal.CopyContext, addr hostarch.Addr, src []uint64) (int, error)

CopyUint64SliceOut copies a slice of uint64 objects to the task's memory.

func CopyUint8In

func CopyUint8In(cc marshal.CopyContext, addr hostarch.Addr, dst *uint8) (int, error)

CopyUint8In is a convenient wrapper for copying in a uint8 from the task's memory.

func CopyUint8Out

func CopyUint8Out(cc marshal.CopyContext, addr hostarch.Addr, src uint8) (int, error)

CopyUint8Out is a convenient wrapper for copying out a uint8 to the task's memory.

func CopyUint8SliceIn

func CopyUint8SliceIn(cc marshal.CopyContext, addr hostarch.Addr, dst []uint8) (int, error)

CopyUint8SliceIn copies in a slice of uint8 objects from the task's memory.

func CopyUint8SliceOut

func CopyUint8SliceOut(cc marshal.CopyContext, addr hostarch.Addr, src []uint8) (int, error)

CopyUint8SliceOut copies a slice of uint8 objects to the task's memory.

func MarshalUnsafeInt16Slice

func MarshalUnsafeInt16Slice(src []Int16, dst []byte) []byte

MarshalUnsafeInt16Slice is like Int16.MarshalUnsafe, but for a []Int16.

func MarshalUnsafeInt32Slice

func MarshalUnsafeInt32Slice(src []Int32, dst []byte) []byte

MarshalUnsafeInt32Slice is like Int32.MarshalUnsafe, but for a []Int32.

func MarshalUnsafeInt64Slice

func MarshalUnsafeInt64Slice(src []Int64, dst []byte) []byte

MarshalUnsafeInt64Slice is like Int64.MarshalUnsafe, but for a []Int64.

func MarshalUnsafeInt8Slice

func MarshalUnsafeInt8Slice(src []Int8, dst []byte) []byte

MarshalUnsafeInt8Slice is like Int8.MarshalUnsafe, but for a []Int8.

func MarshalUnsafeUint16Slice

func MarshalUnsafeUint16Slice(src []Uint16, dst []byte) []byte

MarshalUnsafeUint16Slice is like Uint16.MarshalUnsafe, but for a []Uint16.

func MarshalUnsafeUint32Slice

func MarshalUnsafeUint32Slice(src []Uint32, dst []byte) []byte

MarshalUnsafeUint32Slice is like Uint32.MarshalUnsafe, but for a []Uint32.

func MarshalUnsafeUint64Slice

func MarshalUnsafeUint64Slice(src []Uint64, dst []byte) []byte

MarshalUnsafeUint64Slice is like Uint64.MarshalUnsafe, but for a []Uint64.

func MarshalUnsafeUint8Slice

func MarshalUnsafeUint8Slice(src []Uint8, dst []byte) []byte

MarshalUnsafeUint8Slice is like Uint8.MarshalUnsafe, but for a []Uint8.

func UnmarshalUnsafeInt16Slice

func UnmarshalUnsafeInt16Slice(dst []Int16, src []byte) []byte

UnmarshalUnsafeInt16Slice is like Int16.UnmarshalUnsafe, but for a []Int16.

func UnmarshalUnsafeInt32Slice

func UnmarshalUnsafeInt32Slice(dst []Int32, src []byte) []byte

UnmarshalUnsafeInt32Slice is like Int32.UnmarshalUnsafe, but for a []Int32.

func UnmarshalUnsafeInt64Slice

func UnmarshalUnsafeInt64Slice(dst []Int64, src []byte) []byte

UnmarshalUnsafeInt64Slice is like Int64.UnmarshalUnsafe, but for a []Int64.

func UnmarshalUnsafeInt8Slice

func UnmarshalUnsafeInt8Slice(dst []Int8, src []byte) []byte

UnmarshalUnsafeInt8Slice is like Int8.UnmarshalUnsafe, but for a []Int8.

func UnmarshalUnsafeUint16Slice

func UnmarshalUnsafeUint16Slice(dst []Uint16, src []byte) []byte

UnmarshalUnsafeUint16Slice is like Uint16.UnmarshalUnsafe, but for a []Uint16.

func UnmarshalUnsafeUint32Slice

func UnmarshalUnsafeUint32Slice(dst []Uint32, src []byte) []byte

UnmarshalUnsafeUint32Slice is like Uint32.UnmarshalUnsafe, but for a []Uint32.

func UnmarshalUnsafeUint64Slice

func UnmarshalUnsafeUint64Slice(dst []Uint64, src []byte) []byte

UnmarshalUnsafeUint64Slice is like Uint64.UnmarshalUnsafe, but for a []Uint64.

func UnmarshalUnsafeUint8Slice

func UnmarshalUnsafeUint8Slice(dst []Uint8, src []byte) []byte

UnmarshalUnsafeUint8Slice is like Uint8.UnmarshalUnsafe, but for a []Uint8.

Types

type ByteSlice

type ByteSlice []byte

ByteSlice is a marshal.Marshallable implementation for []byte. This is a convenience wrapper around a dynamically sized type, and can't be embedded in other marshallable types because it breaks assumptions made by go-marshal internals. It violates the "no dynamically-sized types" constraint of the go-marshal library.

func (*ByteSlice) CopyIn

func (b *ByteSlice) CopyIn(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyIn implements marshal.Marshallable.CopyIn.

func (*ByteSlice) CopyInN

func (b *ByteSlice) CopyInN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyInN implements marshal.Marshallable.CopyInN.

func (*ByteSlice) CopyOut

func (b *ByteSlice) CopyOut(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyOut implements marshal.Marshallable.CopyOut.

func (*ByteSlice) CopyOutN

func (b *ByteSlice) CopyOutN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyOutN implements marshal.Marshallable.CopyOutN.

func (*ByteSlice) MarshalBytes

func (b *ByteSlice) MarshalBytes(dst []byte) []byte

MarshalBytes implements marshal.Marshallable.MarshalBytes.

func (*ByteSlice) MarshalUnsafe

func (b *ByteSlice) MarshalUnsafe(dst []byte) []byte

MarshalUnsafe implements marshal.Marshallable.MarshalUnsafe.

func (*ByteSlice) Packed

func (b *ByteSlice) Packed() bool

Packed implements marshal.Marshallable.Packed.

func (*ByteSlice) SizeBytes

func (b *ByteSlice) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*ByteSlice) UnmarshalBytes

func (b *ByteSlice) UnmarshalBytes(src []byte) []byte

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

func (*ByteSlice) UnmarshalUnsafe

func (b *ByteSlice) UnmarshalUnsafe(src []byte) []byte

UnmarshalUnsafe implements marshal.Marshallable.UnmarshalUnsafe.

func (*ByteSlice) WriteTo

func (b *ByteSlice) WriteTo(w io.Writer) (int64, error)

WriteTo implements io.WriterTo.WriteTo.

type Int16

type Int16 int16

Int16 is a marshal.Marshallable implementation for int16.

+marshal boundCheck slice:Int16Slice:inner

func (*Int16) CheckedMarshal

func (i *Int16) CheckedMarshal(dst []byte) ([]byte, bool)

CheckedMarshal implements marshal.CheckedMarshallable.CheckedMarshal.

func (*Int16) CheckedUnmarshal

func (i *Int16) CheckedUnmarshal(src []byte) ([]byte, bool)

CheckedUnmarshal implements marshal.CheckedMarshallable.CheckedUnmarshal.

func (*Int16) CopyIn

func (i *Int16) CopyIn(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyIn implements marshal.Marshallable.CopyIn.

func (*Int16) CopyInN

func (i *Int16) CopyInN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyInN implements marshal.Marshallable.CopyInN.

func (*Int16) CopyOut

func (i *Int16) CopyOut(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyOut implements marshal.Marshallable.CopyOut.

func (*Int16) CopyOutN

func (i *Int16) CopyOutN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyOutN implements marshal.Marshallable.CopyOutN.

func (*Int16) MarshalBytes

func (i *Int16) MarshalBytes(dst []byte) []byte

MarshalBytes implements marshal.Marshallable.MarshalBytes.

func (*Int16) MarshalUnsafe

func (i *Int16) MarshalUnsafe(dst []byte) []byte

MarshalUnsafe implements marshal.Marshallable.MarshalUnsafe.

func (*Int16) Packed

func (i *Int16) Packed() bool

Packed implements marshal.Marshallable.Packed.

func (*Int16) SizeBytes

func (i *Int16) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Int16) UnmarshalBytes

func (i *Int16) UnmarshalBytes(src []byte) []byte

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

func (*Int16) UnmarshalUnsafe

func (i *Int16) UnmarshalUnsafe(src []byte) []byte

UnmarshalUnsafe implements marshal.Marshallable.UnmarshalUnsafe.

func (*Int16) WriteTo

func (i *Int16) WriteTo(writer io.Writer) (int64, error)

WriteTo implements io.WriterTo.WriteTo.

type Int32

type Int32 int32

Int32 is a marshal.Marshallable implementation for int32.

+marshal boundCheck slice:Int32Slice:inner

func (*Int32) CheckedMarshal

func (i *Int32) CheckedMarshal(dst []byte) ([]byte, bool)

CheckedMarshal implements marshal.CheckedMarshallable.CheckedMarshal.

func (*Int32) CheckedUnmarshal

func (i *Int32) CheckedUnmarshal(src []byte) ([]byte, bool)

CheckedUnmarshal implements marshal.CheckedMarshallable.CheckedUnmarshal.

func (*Int32) CopyIn

func (i *Int32) CopyIn(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyIn implements marshal.Marshallable.CopyIn.

func (*Int32) CopyInN

func (i *Int32) CopyInN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyInN implements marshal.Marshallable.CopyInN.

func (*Int32) CopyOut

func (i *Int32) CopyOut(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyOut implements marshal.Marshallable.CopyOut.

func (*Int32) CopyOutN

func (i *Int32) CopyOutN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyOutN implements marshal.Marshallable.CopyOutN.

func (*Int32) MarshalBytes

func (i *Int32) MarshalBytes(dst []byte) []byte

MarshalBytes implements marshal.Marshallable.MarshalBytes.

func (*Int32) MarshalUnsafe

func (i *Int32) MarshalUnsafe(dst []byte) []byte

MarshalUnsafe implements marshal.Marshallable.MarshalUnsafe.

func (*Int32) Packed

func (i *Int32) Packed() bool

Packed implements marshal.Marshallable.Packed.

func (*Int32) SizeBytes

func (i *Int32) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Int32) UnmarshalBytes

func (i *Int32) UnmarshalBytes(src []byte) []byte

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

func (*Int32) UnmarshalUnsafe

func (i *Int32) UnmarshalUnsafe(src []byte) []byte

UnmarshalUnsafe implements marshal.Marshallable.UnmarshalUnsafe.

func (*Int32) WriteTo

func (i *Int32) WriteTo(writer io.Writer) (int64, error)

WriteTo implements io.WriterTo.WriteTo.

type Int64

type Int64 int64

Int64 is a marshal.Marshallable implementation for int64.

+marshal boundCheck slice:Int64Slice:inner

func (*Int64) CheckedMarshal

func (i *Int64) CheckedMarshal(dst []byte) ([]byte, bool)

CheckedMarshal implements marshal.CheckedMarshallable.CheckedMarshal.

func (*Int64) CheckedUnmarshal

func (i *Int64) CheckedUnmarshal(src []byte) ([]byte, bool)

CheckedUnmarshal implements marshal.CheckedMarshallable.CheckedUnmarshal.

func (*Int64) CopyIn

func (i *Int64) CopyIn(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyIn implements marshal.Marshallable.CopyIn.

func (*Int64) CopyInN

func (i *Int64) CopyInN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyInN implements marshal.Marshallable.CopyInN.

func (*Int64) CopyOut

func (i *Int64) CopyOut(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyOut implements marshal.Marshallable.CopyOut.

func (*Int64) CopyOutN

func (i *Int64) CopyOutN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyOutN implements marshal.Marshallable.CopyOutN.

func (*Int64) MarshalBytes

func (i *Int64) MarshalBytes(dst []byte) []byte

MarshalBytes implements marshal.Marshallable.MarshalBytes.

func (*Int64) MarshalUnsafe

func (i *Int64) MarshalUnsafe(dst []byte) []byte

MarshalUnsafe implements marshal.Marshallable.MarshalUnsafe.

func (*Int64) Packed

func (i *Int64) Packed() bool

Packed implements marshal.Marshallable.Packed.

func (*Int64) SizeBytes

func (i *Int64) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Int64) UnmarshalBytes

func (i *Int64) UnmarshalBytes(src []byte) []byte

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

func (*Int64) UnmarshalUnsafe

func (i *Int64) UnmarshalUnsafe(src []byte) []byte

UnmarshalUnsafe implements marshal.Marshallable.UnmarshalUnsafe.

func (*Int64) WriteTo

func (i *Int64) WriteTo(writer io.Writer) (int64, error)

WriteTo implements io.WriterTo.WriteTo.

type Int8

type Int8 int8

Int8 is a marshal.Marshallable implementation for int8.

+marshal boundCheck slice:Int8Slice:inner

func (*Int8) CheckedMarshal

func (i *Int8) CheckedMarshal(dst []byte) ([]byte, bool)

CheckedMarshal implements marshal.CheckedMarshallable.CheckedMarshal.

func (*Int8) CheckedUnmarshal

func (i *Int8) CheckedUnmarshal(src []byte) ([]byte, bool)

CheckedUnmarshal implements marshal.CheckedMarshallable.CheckedUnmarshal.

func (*Int8) CopyIn

func (i *Int8) CopyIn(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyIn implements marshal.Marshallable.CopyIn.

func (*Int8) CopyInN

func (i *Int8) CopyInN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyInN implements marshal.Marshallable.CopyInN.

func (*Int8) CopyOut

func (i *Int8) CopyOut(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyOut implements marshal.Marshallable.CopyOut.

func (*Int8) CopyOutN

func (i *Int8) CopyOutN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyOutN implements marshal.Marshallable.CopyOutN.

func (*Int8) MarshalBytes

func (i *Int8) MarshalBytes(dst []byte) []byte

MarshalBytes implements marshal.Marshallable.MarshalBytes.

func (*Int8) MarshalUnsafe

func (i *Int8) MarshalUnsafe(dst []byte) []byte

MarshalUnsafe implements marshal.Marshallable.MarshalUnsafe.

func (*Int8) Packed

func (i *Int8) Packed() bool

Packed implements marshal.Marshallable.Packed.

func (*Int8) SizeBytes

func (i *Int8) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Int8) UnmarshalBytes

func (i *Int8) UnmarshalBytes(src []byte) []byte

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

func (*Int8) UnmarshalUnsafe

func (i *Int8) UnmarshalUnsafe(src []byte) []byte

UnmarshalUnsafe implements marshal.Marshallable.UnmarshalUnsafe.

func (*Int8) WriteTo

func (i *Int8) WriteTo(writer io.Writer) (int64, error)

WriteTo implements io.WriterTo.WriteTo.

type Uint16

type Uint16 uint16

Uint16 is a marshal.Marshallable implementation for uint16.

+marshal boundCheck slice:Uint16Slice:inner

func (*Uint16) CheckedMarshal

func (u *Uint16) CheckedMarshal(dst []byte) ([]byte, bool)

CheckedMarshal implements marshal.CheckedMarshallable.CheckedMarshal.

func (*Uint16) CheckedUnmarshal

func (u *Uint16) CheckedUnmarshal(src []byte) ([]byte, bool)

CheckedUnmarshal implements marshal.CheckedMarshallable.CheckedUnmarshal.

func (*Uint16) CopyIn

func (u *Uint16) CopyIn(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyIn implements marshal.Marshallable.CopyIn.

func (*Uint16) CopyInN

func (u *Uint16) CopyInN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyInN implements marshal.Marshallable.CopyInN.

func (*Uint16) CopyOut

func (u *Uint16) CopyOut(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyOut implements marshal.Marshallable.CopyOut.

func (*Uint16) CopyOutN

func (u *Uint16) CopyOutN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyOutN implements marshal.Marshallable.CopyOutN.

func (*Uint16) MarshalBytes

func (u *Uint16) MarshalBytes(dst []byte) []byte

MarshalBytes implements marshal.Marshallable.MarshalBytes.

func (*Uint16) MarshalUnsafe

func (u *Uint16) MarshalUnsafe(dst []byte) []byte

MarshalUnsafe implements marshal.Marshallable.MarshalUnsafe.

func (*Uint16) Packed

func (u *Uint16) Packed() bool

Packed implements marshal.Marshallable.Packed.

func (*Uint16) SizeBytes

func (u *Uint16) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Uint16) UnmarshalBytes

func (u *Uint16) UnmarshalBytes(src []byte) []byte

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

func (*Uint16) UnmarshalUnsafe

func (u *Uint16) UnmarshalUnsafe(src []byte) []byte

UnmarshalUnsafe implements marshal.Marshallable.UnmarshalUnsafe.

func (*Uint16) WriteTo

func (u *Uint16) WriteTo(writer io.Writer) (int64, error)

WriteTo implements io.WriterTo.WriteTo.

type Uint32

type Uint32 uint32

Uint32 is a marshal.Marshallable implementation for uint32.

+marshal boundCheck slice:Uint32Slice:inner

func (*Uint32) CheckedMarshal

func (u *Uint32) CheckedMarshal(dst []byte) ([]byte, bool)

CheckedMarshal implements marshal.CheckedMarshallable.CheckedMarshal.

func (*Uint32) CheckedUnmarshal

func (u *Uint32) CheckedUnmarshal(src []byte) ([]byte, bool)

CheckedUnmarshal implements marshal.CheckedMarshallable.CheckedUnmarshal.

func (*Uint32) CopyIn

func (u *Uint32) CopyIn(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyIn implements marshal.Marshallable.CopyIn.

func (*Uint32) CopyInN

func (u *Uint32) CopyInN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyInN implements marshal.Marshallable.CopyInN.

func (*Uint32) CopyOut

func (u *Uint32) CopyOut(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyOut implements marshal.Marshallable.CopyOut.

func (*Uint32) CopyOutN

func (u *Uint32) CopyOutN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyOutN implements marshal.Marshallable.CopyOutN.

func (*Uint32) MarshalBytes

func (u *Uint32) MarshalBytes(dst []byte) []byte

MarshalBytes implements marshal.Marshallable.MarshalBytes.

func (*Uint32) MarshalUnsafe

func (u *Uint32) MarshalUnsafe(dst []byte) []byte

MarshalUnsafe implements marshal.Marshallable.MarshalUnsafe.

func (*Uint32) Packed

func (u *Uint32) Packed() bool

Packed implements marshal.Marshallable.Packed.

func (*Uint32) SizeBytes

func (u *Uint32) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Uint32) UnmarshalBytes

func (u *Uint32) UnmarshalBytes(src []byte) []byte

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

func (*Uint32) UnmarshalUnsafe

func (u *Uint32) UnmarshalUnsafe(src []byte) []byte

UnmarshalUnsafe implements marshal.Marshallable.UnmarshalUnsafe.

func (*Uint32) WriteTo

func (u *Uint32) WriteTo(writer io.Writer) (int64, error)

WriteTo implements io.WriterTo.WriteTo.

type Uint64

type Uint64 uint64

Uint64 is a marshal.Marshallable implementation for uint64.

+marshal boundCheck slice:Uint64Slice:inner

func (*Uint64) CheckedMarshal

func (u *Uint64) CheckedMarshal(dst []byte) ([]byte, bool)

CheckedMarshal implements marshal.CheckedMarshallable.CheckedMarshal.

func (*Uint64) CheckedUnmarshal

func (u *Uint64) CheckedUnmarshal(src []byte) ([]byte, bool)

CheckedUnmarshal implements marshal.CheckedMarshallable.CheckedUnmarshal.

func (*Uint64) CopyIn

func (u *Uint64) CopyIn(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyIn implements marshal.Marshallable.CopyIn.

func (*Uint64) CopyInN

func (u *Uint64) CopyInN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyInN implements marshal.Marshallable.CopyInN.

func (*Uint64) CopyOut

func (u *Uint64) CopyOut(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyOut implements marshal.Marshallable.CopyOut.

func (*Uint64) CopyOutN

func (u *Uint64) CopyOutN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyOutN implements marshal.Marshallable.CopyOutN.

func (*Uint64) MarshalBytes

func (u *Uint64) MarshalBytes(dst []byte) []byte

MarshalBytes implements marshal.Marshallable.MarshalBytes.

func (*Uint64) MarshalUnsafe

func (u *Uint64) MarshalUnsafe(dst []byte) []byte

MarshalUnsafe implements marshal.Marshallable.MarshalUnsafe.

func (*Uint64) Packed

func (u *Uint64) Packed() bool

Packed implements marshal.Marshallable.Packed.

func (*Uint64) SizeBytes

func (u *Uint64) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Uint64) UnmarshalBytes

func (u *Uint64) UnmarshalBytes(src []byte) []byte

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

func (*Uint64) UnmarshalUnsafe

func (u *Uint64) UnmarshalUnsafe(src []byte) []byte

UnmarshalUnsafe implements marshal.Marshallable.UnmarshalUnsafe.

func (*Uint64) WriteTo

func (u *Uint64) WriteTo(writer io.Writer) (int64, error)

WriteTo implements io.WriterTo.WriteTo.

type Uint8

type Uint8 uint8

Uint8 is a marshal.Marshallable implementation for uint8.

+marshal boundCheck slice:Uint8Slice:inner

func (*Uint8) CheckedMarshal

func (u *Uint8) CheckedMarshal(dst []byte) ([]byte, bool)

CheckedMarshal implements marshal.CheckedMarshallable.CheckedMarshal.

func (*Uint8) CheckedUnmarshal

func (u *Uint8) CheckedUnmarshal(src []byte) ([]byte, bool)

CheckedUnmarshal implements marshal.CheckedMarshallable.CheckedUnmarshal.

func (*Uint8) CopyIn

func (u *Uint8) CopyIn(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyIn implements marshal.Marshallable.CopyIn.

func (*Uint8) CopyInN

func (u *Uint8) CopyInN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyInN implements marshal.Marshallable.CopyInN.

func (*Uint8) CopyOut

func (u *Uint8) CopyOut(cc marshal.CopyContext, addr hostarch.Addr) (int, error)

CopyOut implements marshal.Marshallable.CopyOut.

func (*Uint8) CopyOutN

func (u *Uint8) CopyOutN(cc marshal.CopyContext, addr hostarch.Addr, limit int) (int, error)

CopyOutN implements marshal.Marshallable.CopyOutN.

func (*Uint8) MarshalBytes

func (u *Uint8) MarshalBytes(dst []byte) []byte

MarshalBytes implements marshal.Marshallable.MarshalBytes.

func (*Uint8) MarshalUnsafe

func (u *Uint8) MarshalUnsafe(dst []byte) []byte

MarshalUnsafe implements marshal.Marshallable.MarshalUnsafe.

func (*Uint8) Packed

func (u *Uint8) Packed() bool

Packed implements marshal.Marshallable.Packed.

func (*Uint8) SizeBytes

func (u *Uint8) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Uint8) UnmarshalBytes

func (u *Uint8) UnmarshalBytes(src []byte) []byte

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

func (*Uint8) UnmarshalUnsafe

func (u *Uint8) UnmarshalUnsafe(src []byte) []byte

UnmarshalUnsafe implements marshal.Marshallable.UnmarshalUnsafe.

func (*Uint8) WriteTo

func (u *Uint8) WriteTo(writer io.Writer) (int64, error)

WriteTo implements io.WriterTo.WriteTo.

Jump to

Keyboard shortcuts

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