func (zw *Writer) Release() {
	if zw.cs == nil {
		return
	}

	result := C.ZSTD_freeCStream(zw.cs)
	ensureNoError("ZSTD_freeCStream", result)
	zw.cs = nil

	C.free(unsafe.Pointer(zw.inBuf.src))
	C.free(unsafe.Pointer(zw.inBuf))
	zw.inBuf = nil

	C.free(unsafe.Pointer(zw.outBuf.dst))
	C.free(unsafe.Pointer(zw.outBuf))
	zw.outBuf = nil

	zw.w = nil
	zw.cd = nil
}
// Release releases all the resources occupied by zw.
//
// zw cannot be used after the release.
Release releases all the resources occupied by zw.

zw cannot be used after the release.
// Release releases all the resources occupied by zw . // // zw cannot be used after the release .
func (zw *Writer) Release() {
	if zw.cs == nil {
		return
	}
	result := C.ZSTD_freeCStream(zw.cs)
	ensureNoError("ZSTD_freeCStream", result)
	zw.cs = nil
	C.free(unsafe.Pointer(zw.inBuf.src))
	C.free(unsafe.Pointer(zw.inBuf))
	zw.inBuf = nil
	C.free(unsafe.Pointer(zw.outBuf.dst))
	C.free(unsafe.Pointer(zw.outBuf))
	zw.outBuf = nil
	zw.w = nil
	zw.cd = nil
}
func ( zw * Writer ) Release ( ) { if zw . cs == nil { return } result := C . ZSTD_freeCStream ( zw . cs ) ensureNoError ( " " , result ) zw . cs = nil C . free ( unsafe . Pointer ( zw . inBuf . src ) ) C . free ( unsafe . Pointer ( zw . inBuf ) ) zw . inBuf = nil C . free ( unsafe . Pointer ( zw . outBuf . dst ) ) C . free ( unsafe . Pointer ( zw . outBuf ) ) zw . outBuf = nil zw . w = nil zw . cd = nil }
Release releases all the resources occupied by zw.
Release releases all the resources occupied by zw .