Documentation ¶
Overview ¶
Code generated by vktl/cmd/tlgen2; DO NOT EDIT.
Index ¶
- func GetTLName(tag uint32, notFoundName string) string
- type Function
- type Object
- type TLItem
- func (item TLItem) CreateFunction() Function
- func (item TLItem) CreateObject() Object
- func (item TLItem) IsFunction() bool
- func (item *TLItem) MarshalJSON() ([]byte, error)
- func (item *TLItem) Read(w []byte) ([]byte, error)
- func (item *TLItem) ReadBoxed(w []byte) ([]byte, error)
- func (item *TLItem) Reset()
- func (item TLItem) String() string
- func (item TLItem) TLName() string
- func (item TLItem) TLTag() uint32
- func (item *TLItem) UnmarshalJSON(b []byte) error
- func (item *TLItem) Write(w []byte) ([]byte, error)
- func (item *TLItem) WriteBoxed(w []byte) ([]byte, error)
- func (item *TLItem) WriteJSON(w []byte) (_ []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Function ¶
type Function interface { Object ReadResultWriteResultJSON(r []byte, w []byte) ([]byte, []byte, error) // combination of ReadResult(r) + WriteResultJSON(w). Returns new r, new w, plus error ReadResultJSONWriteResult(r []byte, w []byte) ([]byte, []byte, error) // combination of ReadResultJSON(r) + WriteResult(w). Returns new r, new w, plus error }
func CreateFunction ¶
func CreateFunctionFromName ¶
name can be in any of 3 forms "ch_proxy.insert#7cf362ba", "ch_proxy.insert" or "#7cf362ba"
type Object ¶
type Object interface { TLName() string // returns type's TL name. For union, returns constructor name depending on actual union value TLTag() uint32 // returns type's TL tag. For union, returns constructor tag depending on actual union value String() string // returns type's representation for debugging (JSON for now) Read(w []byte) ([]byte, error) // reads type's bare TL representation by consuming bytes from the start of w and returns remaining bytes, plus error Write(w []byte) ([]byte, error) // appends bytes of type's bare TL representation to the end of w and returns it, plus error ReadBoxed(w []byte) ([]byte, error) // same as Read, but reads/checks TLTag first WriteBoxed(w []byte) ([]byte, error) // same as Write, but writes TLTag first MarshalJSON() ([]byte, error) // returns type's JSON representation, plus error UnmarshalJSON([]byte) error // reads type's JSON representation WriteJSON(w []byte) ([]byte, error) // like MarshalJSON, but appends to w and returns it }
We can create only types which have zero type arguments and zero nat arguments
func CreateObject ¶
func CreateObjectFromName ¶
name can be in any of 3 forms "ch_proxy.insert#7cf362ba", "ch_proxy.insert" or "#7cf362ba"
type TLItem ¶
type TLItem struct {
// contains filtered or unexported fields
}
func FactoryItemByTLName ¶
func FactoryItemByTLTag ¶
func (TLItem) CreateFunction ¶
func (TLItem) CreateObject ¶
func (TLItem) IsFunction ¶
func (*TLItem) MarshalJSON ¶
func (*TLItem) Reset ¶
func (item *TLItem) Reset()
TLItem serves as a single type for all enum values
func (*TLItem) UnmarshalJSON ¶
Directories ¶
Path | Synopsis |
---|---|
Code generated by vktl/cmd/tlgen2; DO NOT EDIT.
|
Code generated by vktl/cmd/tlgen2; DO NOT EDIT. |
Code generated by vktl/cmd/tlgen2; DO NOT EDIT.
|
Code generated by vktl/cmd/tlgen2; DO NOT EDIT. |
Code generated by vktl/cmd/tlgen2; DO NOT EDIT.
|
Code generated by vktl/cmd/tlgen2; DO NOT EDIT. |
Code generated by vktl/cmd/tlgen2; DO NOT EDIT.
|
Code generated by vktl/cmd/tlgen2; DO NOT EDIT. |
Code generated by vktl/cmd/tlgen2; DO NOT EDIT.
|
Code generated by vktl/cmd/tlgen2; DO NOT EDIT. |
Code generated by vktl/cmd/tlgen2; DO NOT EDIT.
|
Code generated by vktl/cmd/tlgen2; DO NOT EDIT. |
Code generated by vktl/cmd/tlgen2; DO NOT EDIT.
|
Code generated by vktl/cmd/tlgen2; DO NOT EDIT. |
Code generated by vktl/cmd/tlgen2; DO NOT EDIT.
|
Code generated by vktl/cmd/tlgen2; DO NOT EDIT. |
Click to show internal directories.
Click to hide internal directories.