Documentation ¶
Overview ¶
Package seq implements the machine-dependent seq serialization format.
Implementations of Transact and FinalizeRef are provided by a specific foreign language binding package, e.g. go.mobile/bind/java.
Designed only for use by the code generated by gobind. Don't try to use this directly.
Index ¶
- Variables
- func Delete(num int32)
- func Register(descriptor string, code int, fn Func)
- type Buffer
- func (b *Buffer) ReadBool() bool
- func (b *Buffer) ReadByteArray() []byte
- func (b *Buffer) ReadError() error
- func (b *Buffer) ReadFloat32() float32
- func (b *Buffer) ReadFloat64() float64
- func (b *Buffer) ReadInt() int
- func (b *Buffer) ReadInt16() int16
- func (b *Buffer) ReadInt32() int32
- func (b *Buffer) ReadInt64() int64
- func (b *Buffer) ReadInt8() int8
- func (b *Buffer) ReadRef() *Ref
- func (b *Buffer) ReadString() string
- func (b *Buffer) ReadUTF16() string
- func (b *Buffer) ReadUTF8() string
- func (b *Buffer) String() string
- func (b *Buffer) WriteBool(v bool)
- func (b *Buffer) WriteByteArray(byt []byte)
- func (b *Buffer) WriteFloat32(v float32)
- func (b *Buffer) WriteFloat64(v float64)
- func (b *Buffer) WriteGoRef(obj interface{})
- func (b *Buffer) WriteInt(v int)
- func (b *Buffer) WriteInt16(v int16)
- func (b *Buffer) WriteInt32(v int32)
- func (b *Buffer) WriteInt64(v int64)
- func (b *Buffer) WriteInt8(v int8)
- func (b *Buffer) WriteString(v string)
- func (b *Buffer) WriteUTF16(s string)
- func (b *Buffer) WriteUTF8(s string)
- type Func
- type Ref
Constants ¶
This section is empty.
Variables ¶
var DecString func(in *Buffer) string
DecString decodes a string encoded in the Buffer.
var EncString func(out *Buffer, v string)
EncString encodes a Go string into the Buffer.
var FinalizeRef func(ref *Ref)
FinalizeRef is the finalizer used on foreign objects.
var Registry = make(map[string]map[int]Func)
Registry holds functions callable from gobind generated bindings. Functions are keyed by descriptor and function code.
Transact calls a method on a foreign object instance. It blocks until the call is complete.
Functions ¶
Types ¶
type Buffer ¶
Buffer is a set of arguments or return values from a function call across the language boundary. Encoding is machine-dependent.
func (*Buffer) ReadByteArray ¶
func (*Buffer) ReadFloat32 ¶
func (*Buffer) ReadFloat64 ¶
func (*Buffer) ReadString ¶
func (*Buffer) WriteByteArray ¶
func (*Buffer) WriteFloat32 ¶
func (*Buffer) WriteFloat64 ¶
func (*Buffer) WriteGoRef ¶
func (b *Buffer) WriteGoRef(obj interface{})