Documentation
¶
Overview ¶
Package blitznative 绑定 Blitz C ABI,管理原生 Context、RGBA 内存和线程本地错误。
Context 将原生图像复制到 Go 内存。绑定精简自 xo/blitz v0.5.0,许可见同目录 LICENSE。
Index ¶
Constants ¶
View Source
const InvalidArgument = int(C.BLITZ_ERR_INVALID_ARG)
InvalidArgument 对应原生桥接的输入错误状态码。
Variables ¶
View Source
var ErrClosed = errors.New("blitz: context is closed")
ErrClosed 表示原生 Context 已释放。
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context 拥有原生指针,锁保证渲染结束前不会被 Close 释放。
Click to show internal directories.
Click to hide internal directories.