nexgb: regenerate from xcb-proto 1.12

To refresh documentation.
This commit is contained in:
2018-09-30 16:32:47 +02:00
parent 7051829581
commit e6e4e94436
26 changed files with 2479 additions and 2300 deletions

View File

@@ -173,7 +173,7 @@ type GetClientContextCookie struct {
}
// GetClientContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetClientContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetClientContextCookie.Reply.
func GetClientContext(c *xgb.Conn, Resource uint32) GetClientContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -248,8 +248,7 @@ func getClientContextReply(buf []byte) *GetClientContextReply {
return v
}
// Write request to wire for GetClientContext
// getClientContextRequest writes a GetClientContext request to a byte slice.
// getClientContextRequest writes a GetClientContext request to a byte slice for transfer.
func getClientContextRequest(c *xgb.Conn, Resource uint32) []byte {
size := 8
b := 0
@@ -278,7 +277,7 @@ type GetDeviceContextCookie struct {
}
// GetDeviceContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetDeviceContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetDeviceContextCookie.Reply.
func GetDeviceContext(c *xgb.Conn, Device uint32) GetDeviceContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -353,8 +352,7 @@ func getDeviceContextReply(buf []byte) *GetDeviceContextReply {
return v
}
// Write request to wire for GetDeviceContext
// getDeviceContextRequest writes a GetDeviceContext request to a byte slice.
// getDeviceContextRequest writes a GetDeviceContext request to a byte slice for transfer.
func getDeviceContextRequest(c *xgb.Conn, Device uint32) []byte {
size := 8
b := 0
@@ -383,7 +381,7 @@ type GetDeviceCreateContextCookie struct {
}
// GetDeviceCreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetDeviceCreateContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetDeviceCreateContextCookie.Reply.
func GetDeviceCreateContext(c *xgb.Conn) GetDeviceCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -458,8 +456,7 @@ func getDeviceCreateContextReply(buf []byte) *GetDeviceCreateContextReply {
return v
}
// Write request to wire for GetDeviceCreateContext
// getDeviceCreateContextRequest writes a GetDeviceCreateContext request to a byte slice.
// getDeviceCreateContextRequest writes a GetDeviceCreateContext request to a byte slice for transfer.
func getDeviceCreateContextRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@@ -485,7 +482,7 @@ type GetPropertyContextCookie struct {
}
// GetPropertyContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPropertyContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetPropertyContextCookie.Reply.
func GetPropertyContext(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -560,8 +557,7 @@ func getPropertyContextReply(buf []byte) *GetPropertyContextReply {
return v
}
// Write request to wire for GetPropertyContext
// getPropertyContextRequest writes a GetPropertyContext request to a byte slice.
// getPropertyContextRequest writes a GetPropertyContext request to a byte slice for transfer.
func getPropertyContextRequest(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) []byte {
size := 12
b := 0
@@ -593,7 +589,7 @@ type GetPropertyCreateContextCookie struct {
}
// GetPropertyCreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPropertyCreateContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetPropertyCreateContextCookie.Reply.
func GetPropertyCreateContext(c *xgb.Conn) GetPropertyCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -668,8 +664,7 @@ func getPropertyCreateContextReply(buf []byte) *GetPropertyCreateContextReply {
return v
}
// Write request to wire for GetPropertyCreateContext
// getPropertyCreateContextRequest writes a GetPropertyCreateContext request to a byte slice.
// getPropertyCreateContextRequest writes a GetPropertyCreateContext request to a byte slice for transfer.
func getPropertyCreateContextRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@@ -695,7 +690,7 @@ type GetPropertyDataContextCookie struct {
}
// GetPropertyDataContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPropertyDataContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetPropertyDataContextCookie.Reply.
func GetPropertyDataContext(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyDataContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -770,8 +765,7 @@ func getPropertyDataContextReply(buf []byte) *GetPropertyDataContextReply {
return v
}
// Write request to wire for GetPropertyDataContext
// getPropertyDataContextRequest writes a GetPropertyDataContext request to a byte slice.
// getPropertyDataContextRequest writes a GetPropertyDataContext request to a byte slice for transfer.
func getPropertyDataContextRequest(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) []byte {
size := 12
b := 0
@@ -803,7 +797,7 @@ type GetPropertyUseContextCookie struct {
}
// GetPropertyUseContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPropertyUseContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetPropertyUseContextCookie.Reply.
func GetPropertyUseContext(c *xgb.Conn) GetPropertyUseContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -878,8 +872,7 @@ func getPropertyUseContextReply(buf []byte) *GetPropertyUseContextReply {
return v
}
// Write request to wire for GetPropertyUseContext
// getPropertyUseContextRequest writes a GetPropertyUseContext request to a byte slice.
// getPropertyUseContextRequest writes a GetPropertyUseContext request to a byte slice for transfer.
func getPropertyUseContextRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@@ -905,7 +898,7 @@ type GetSelectionContextCookie struct {
}
// GetSelectionContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetSelectionContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetSelectionContextCookie.Reply.
func GetSelectionContext(c *xgb.Conn, Selection xproto.Atom) GetSelectionContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -980,8 +973,7 @@ func getSelectionContextReply(buf []byte) *GetSelectionContextReply {
return v
}
// Write request to wire for GetSelectionContext
// getSelectionContextRequest writes a GetSelectionContext request to a byte slice.
// getSelectionContextRequest writes a GetSelectionContext request to a byte slice for transfer.
func getSelectionContextRequest(c *xgb.Conn, Selection xproto.Atom) []byte {
size := 8
b := 0
@@ -1010,7 +1002,7 @@ type GetSelectionCreateContextCookie struct {
}
// GetSelectionCreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetSelectionCreateContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetSelectionCreateContextCookie.Reply.
func GetSelectionCreateContext(c *xgb.Conn) GetSelectionCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -1085,8 +1077,7 @@ func getSelectionCreateContextReply(buf []byte) *GetSelectionCreateContextReply
return v
}
// Write request to wire for GetSelectionCreateContext
// getSelectionCreateContextRequest writes a GetSelectionCreateContext request to a byte slice.
// getSelectionCreateContextRequest writes a GetSelectionCreateContext request to a byte slice for transfer.
func getSelectionCreateContextRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@@ -1112,7 +1103,7 @@ type GetSelectionDataContextCookie struct {
}
// GetSelectionDataContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetSelectionDataContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetSelectionDataContextCookie.Reply.
func GetSelectionDataContext(c *xgb.Conn, Selection xproto.Atom) GetSelectionDataContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -1187,8 +1178,7 @@ func getSelectionDataContextReply(buf []byte) *GetSelectionDataContextReply {
return v
}
// Write request to wire for GetSelectionDataContext
// getSelectionDataContextRequest writes a GetSelectionDataContext request to a byte slice.
// getSelectionDataContextRequest writes a GetSelectionDataContext request to a byte slice for transfer.
func getSelectionDataContextRequest(c *xgb.Conn, Selection xproto.Atom) []byte {
size := 8
b := 0
@@ -1217,7 +1207,7 @@ type GetSelectionUseContextCookie struct {
}
// GetSelectionUseContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetSelectionUseContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetSelectionUseContextCookie.Reply.
func GetSelectionUseContext(c *xgb.Conn) GetSelectionUseContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -1292,8 +1282,7 @@ func getSelectionUseContextReply(buf []byte) *GetSelectionUseContextReply {
return v
}
// Write request to wire for GetSelectionUseContext
// getSelectionUseContextRequest writes a GetSelectionUseContext request to a byte slice.
// getSelectionUseContextRequest writes a GetSelectionUseContext request to a byte slice for transfer.
func getSelectionUseContextRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@@ -1319,7 +1308,7 @@ type GetWindowContextCookie struct {
}
// GetWindowContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetWindowContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetWindowContextCookie.Reply.
func GetWindowContext(c *xgb.Conn, Window xproto.Window) GetWindowContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -1394,8 +1383,7 @@ func getWindowContextReply(buf []byte) *GetWindowContextReply {
return v
}
// Write request to wire for GetWindowContext
// getWindowContextRequest writes a GetWindowContext request to a byte slice.
// getWindowContextRequest writes a GetWindowContext request to a byte slice for transfer.
func getWindowContextRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@@ -1424,7 +1412,7 @@ type GetWindowCreateContextCookie struct {
}
// GetWindowCreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetWindowCreateContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetWindowCreateContextCookie.Reply.
func GetWindowCreateContext(c *xgb.Conn) GetWindowCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -1499,8 +1487,7 @@ func getWindowCreateContextReply(buf []byte) *GetWindowCreateContextReply {
return v
}
// Write request to wire for GetWindowCreateContext
// getWindowCreateContextRequest writes a GetWindowCreateContext request to a byte slice.
// getWindowCreateContextRequest writes a GetWindowCreateContext request to a byte slice for transfer.
func getWindowCreateContextRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@@ -1526,7 +1513,7 @@ type ListPropertiesCookie struct {
}
// ListProperties sends a checked request.
// If an error occurs, it will be returned with the reply by calling ListPropertiesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling ListPropertiesCookie.Reply.
func ListProperties(c *xgb.Conn, Window xproto.Window) ListPropertiesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -1597,8 +1584,7 @@ func listPropertiesReply(buf []byte) *ListPropertiesReply {
return v
}
// Write request to wire for ListProperties
// listPropertiesRequest writes a ListProperties request to a byte slice.
// listPropertiesRequest writes a ListProperties request to a byte slice for transfer.
func listPropertiesRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@@ -1627,7 +1613,7 @@ type ListSelectionsCookie struct {
}
// ListSelections sends a checked request.
// If an error occurs, it will be returned with the reply by calling ListSelectionsCookie.Reply()
// If an error occurs, it will be returned with the reply by calling ListSelectionsCookie.Reply.
func ListSelections(c *xgb.Conn) ListSelectionsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -1698,8 +1684,7 @@ func listSelectionsReply(buf []byte) *ListSelectionsReply {
return v
}
// Write request to wire for ListSelections
// listSelectionsRequest writes a ListSelections request to a byte slice.
// listSelectionsRequest writes a ListSelections request to a byte slice for transfer.
func listSelectionsRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@@ -1725,8 +1710,8 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionCookie {
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn, ClientMajor, ClientMinor byte) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SELinux"]; !ok {
@@ -1739,7 +1724,7 @@ func QueryVersion(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionC
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionCookie {
func QueryVersionUnchecked(c *xgb.Conn, ClientMajor, ClientMinor byte) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SELinux"]; !ok {
@@ -1793,9 +1778,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
func queryVersionRequest(c *xgb.Conn, ClientMajor byte, ClientMinor byte) []byte {
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn, ClientMajor, ClientMinor byte) []byte {
size := 8
b := 0
buf := make([]byte, size)
@@ -1827,7 +1811,7 @@ type SetDeviceContextCookie struct {
// SetDeviceContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetDeviceContext(c *xgb.Conn, Device uint32, ContextLen uint32, Context string) SetDeviceContextCookie {
func SetDeviceContext(c *xgb.Conn, Device, ContextLen uint32, Context string) SetDeviceContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SELinux"]; !ok {
@@ -1839,8 +1823,8 @@ func SetDeviceContext(c *xgb.Conn, Device uint32, ContextLen uint32, Context str
}
// SetDeviceContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetDeviceContextCookie.Check()
func SetDeviceContextChecked(c *xgb.Conn, Device uint32, ContextLen uint32, Context string) SetDeviceContextCookie {
// If an error occurs, it can be retrieved using SetDeviceContextCookie.Check.
func SetDeviceContextChecked(c *xgb.Conn, Device, ContextLen uint32, Context string) SetDeviceContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SELinux"]; !ok {
@@ -1857,9 +1841,8 @@ func (cook SetDeviceContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetDeviceContext
// setDeviceContextRequest writes a SetDeviceContext request to a byte slice.
func setDeviceContextRequest(c *xgb.Conn, Device uint32, ContextLen uint32, Context string) []byte {
// setDeviceContextRequest writes a SetDeviceContext request to a byte slice for transfer.
func setDeviceContextRequest(c *xgb.Conn, Device, ContextLen uint32, Context string) []byte {
size := xgb.Pad((12 + xgb.Pad((int(ContextLen) * 1))))
b := 0
buf := make([]byte, size)
@@ -1906,7 +1889,7 @@ func SetDeviceCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetD
}
// SetDeviceCreateContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetDeviceCreateContextCookie.Check()
// If an error occurs, it can be retrieved using SetDeviceCreateContextCookie.Check.
func SetDeviceCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetDeviceCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -1924,8 +1907,7 @@ func (cook SetDeviceCreateContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetDeviceCreateContext
// setDeviceCreateContextRequest writes a SetDeviceCreateContext request to a byte slice.
// setDeviceCreateContextRequest writes a SetDeviceCreateContext request to a byte slice for transfer.
func setDeviceCreateContextRequest(c *xgb.Conn, ContextLen uint32, Context string) []byte {
size := xgb.Pad((8 + xgb.Pad((int(ContextLen) * 1))))
b := 0
@@ -1970,7 +1952,7 @@ func SetPropertyCreateContext(c *xgb.Conn, ContextLen uint32, Context string) Se
}
// SetPropertyCreateContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetPropertyCreateContextCookie.Check()
// If an error occurs, it can be retrieved using SetPropertyCreateContextCookie.Check.
func SetPropertyCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -1988,8 +1970,7 @@ func (cook SetPropertyCreateContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetPropertyCreateContext
// setPropertyCreateContextRequest writes a SetPropertyCreateContext request to a byte slice.
// setPropertyCreateContextRequest writes a SetPropertyCreateContext request to a byte slice for transfer.
func setPropertyCreateContextRequest(c *xgb.Conn, ContextLen uint32, Context string) []byte {
size := xgb.Pad((8 + xgb.Pad((int(ContextLen) * 1))))
b := 0
@@ -2034,7 +2015,7 @@ func SetPropertyUseContext(c *xgb.Conn, ContextLen uint32, Context string) SetPr
}
// SetPropertyUseContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetPropertyUseContextCookie.Check()
// If an error occurs, it can be retrieved using SetPropertyUseContextCookie.Check.
func SetPropertyUseContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyUseContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -2052,8 +2033,7 @@ func (cook SetPropertyUseContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetPropertyUseContext
// setPropertyUseContextRequest writes a SetPropertyUseContext request to a byte slice.
// setPropertyUseContextRequest writes a SetPropertyUseContext request to a byte slice for transfer.
func setPropertyUseContextRequest(c *xgb.Conn, ContextLen uint32, Context string) []byte {
size := xgb.Pad((8 + xgb.Pad((int(ContextLen) * 1))))
b := 0
@@ -2098,7 +2078,7 @@ func SetSelectionCreateContext(c *xgb.Conn, ContextLen uint32, Context string) S
}
// SetSelectionCreateContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetSelectionCreateContextCookie.Check()
// If an error occurs, it can be retrieved using SetSelectionCreateContextCookie.Check.
func SetSelectionCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -2116,8 +2096,7 @@ func (cook SetSelectionCreateContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetSelectionCreateContext
// setSelectionCreateContextRequest writes a SetSelectionCreateContext request to a byte slice.
// setSelectionCreateContextRequest writes a SetSelectionCreateContext request to a byte slice for transfer.
func setSelectionCreateContextRequest(c *xgb.Conn, ContextLen uint32, Context string) []byte {
size := xgb.Pad((8 + xgb.Pad((int(ContextLen) * 1))))
b := 0
@@ -2162,7 +2141,7 @@ func SetSelectionUseContext(c *xgb.Conn, ContextLen uint32, Context string) SetS
}
// SetSelectionUseContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetSelectionUseContextCookie.Check()
// If an error occurs, it can be retrieved using SetSelectionUseContextCookie.Check.
func SetSelectionUseContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionUseContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -2180,8 +2159,7 @@ func (cook SetSelectionUseContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetSelectionUseContext
// setSelectionUseContextRequest writes a SetSelectionUseContext request to a byte slice.
// setSelectionUseContextRequest writes a SetSelectionUseContext request to a byte slice for transfer.
func setSelectionUseContextRequest(c *xgb.Conn, ContextLen uint32, Context string) []byte {
size := xgb.Pad((8 + xgb.Pad((int(ContextLen) * 1))))
b := 0
@@ -2226,7 +2204,7 @@ func SetWindowCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetW
}
// SetWindowCreateContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetWindowCreateContextCookie.Check()
// If an error occurs, it can be retrieved using SetWindowCreateContextCookie.Check.
func SetWindowCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetWindowCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -2244,8 +2222,7 @@ func (cook SetWindowCreateContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetWindowCreateContext
// setWindowCreateContextRequest writes a SetWindowCreateContext request to a byte slice.
// setWindowCreateContextRequest writes a SetWindowCreateContext request to a byte slice for transfer.
func setWindowCreateContextRequest(c *xgb.Conn, ContextLen uint32, Context string) []byte {
size := xgb.Pad((8 + xgb.Pad((int(ContextLen) * 1))))
b := 0