Source File
rpc_result.go
Belonging Package
github.com/gotd/td/internal/proto
package proto
import (
)
// ResultTypeID is TL type id of Result.
const ResultTypeID = 0xf35c6d01
// Result is rpc_result#f35c6d01.
type Result struct {
RequestMessageID int64
Result []byte
}
// Encode implements bin.Encoder.
func ( *Result) ( *bin.Buffer) error {
.PutID(ResultTypeID)
.PutLong(.RequestMessageID)
.Put(.Result)
return nil
}
// Decode implements bin.Decoder.
func ( *Result) ( *bin.Buffer) error {
if := .ConsumeID(ResultTypeID); != nil {
return
}
{
, := .Long()
if != nil {
return
}
.RequestMessageID =
}
.Result = append(.Result[:0], .Buf...)
.Skip(len(.Buf))
return nil
}
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |