Пример #1
0
func newInputStream(reader io.Reader) *inputStream {
	s := &inputStream{reader: reader} // Foll GC
	s.bindPtr(C.wxInputStream_New(C.GoReaderPtr(&reader)),
		func(p unsafe.Pointer) { C.wxInputStream_Delete(p) })
	return s
}
Пример #2
0
func (s *inputStream) Release() {
	C.wxInputStream_Delete(s.p)
	s.p = nil
}