Documentation
¶
Index ¶
- Constants
- Variables
- func ScriptBytesFromBase64(base64Bytes []byte) ([]byte, error)
- func ScriptBytesFromBase64Str(base64String string) ([]byte, error)
- type BytesReader
- func (a *BytesReader) Eof() bool
- func (a *BytesReader) Len() int
- func (a *BytesReader) Next() byte
- func (a *BytesReader) Peek() byte
- func (a *BytesReader) Pos() int
- func (a *BytesReader) ReadByte() (byte, error)
- func (a *BytesReader) ReadBytes() []byte
- func (a *BytesReader) ReadInt() int32
- func (a *BytesReader) ReadLong() int64
- func (a *BytesReader) ReadShort() int16
- func (a *BytesReader) ReadString() string
- func (a *BytesReader) Rest() []byte
Constants ¶
View Source
const DEC_FUNC byte = 1
View Source
const DEC_LET byte = 0
View Source
const E_ARR byte = 11
View Source
const E_BLOCK byte = 4
View Source
const E_BLOCK_V2 byte = 10
View Source
const E_BYTES byte = 1
View Source
const E_FALSE byte = 7
View Source
const E_FUNCALL byte = 9
View Source
const E_GETTER byte = 8
View Source
const E_IF byte = 3
View Source
const E_LONG byte = 0
View Source
const E_REF byte = 5
View Source
const E_STRING byte = 2
View Source
const E_TRUE byte = 6
View Source
const FH_NATIVE byte = 0
View Source
const FH_USER byte = 1
Variables ¶
View Source
var ErrUnexpectedEOF = errors.New("unexpected eof")
Functions ¶
func ScriptBytesFromBase64 ¶ added in v0.3.0
func ScriptBytesFromBase64Str ¶ added in v0.3.0
Types ¶
type BytesReader ¶
type BytesReader struct {
// contains filtered or unexported fields
}
func NewBytesReader ¶
func NewBytesReader(bytes []byte) *BytesReader
func NewReaderFromBase64 ¶
func NewReaderFromBase64(base64String string) (*BytesReader, error)
func (*BytesReader) Eof ¶
func (a *BytesReader) Eof() bool
func (*BytesReader) Len ¶
func (a *BytesReader) Len() int
func (*BytesReader) Next ¶
func (a *BytesReader) Next() byte
func (*BytesReader) Peek ¶
func (a *BytesReader) Peek() byte
func (*BytesReader) Pos ¶
func (a *BytesReader) Pos() int
func (*BytesReader) ReadByte ¶
func (a *BytesReader) ReadByte() (byte, error)
func (*BytesReader) ReadBytes ¶
func (a *BytesReader) ReadBytes() []byte
func (*BytesReader) ReadInt ¶
func (a *BytesReader) ReadInt() int32
func (*BytesReader) ReadLong ¶
func (a *BytesReader) ReadLong() int64
func (*BytesReader) ReadShort ¶
func (a *BytesReader) ReadShort() int16
func (*BytesReader) ReadString ¶
func (a *BytesReader) ReadString() string
func (*BytesReader) Rest ¶ added in v0.3.0
func (a *BytesReader) Rest() []byte
Click to show internal directories.
Click to hide internal directories.