Пример #1
0
func (dst *RWops) WriteU8(value uint8) uint {
	if dst == nil {
		return 0
	}
	_dst := (*C.SDL_RWops)(unsafe.Pointer(dst))
	_value := (C.Uint8)(value)
	return (uint)(C.SDL_WriteU8(_dst, _value))
}
Пример #2
0
func (dst *RWops) WriteU8(value uint8) uint {
	if dst == nil {
		return 0
	}
	return uint(C.SDL_WriteU8(dst.cptr(), C.Uint8(value)))
}