// Some assertions around filehandle's applicability func TestTypes(t *testing.T) { _ = os.FileInfo(&FileHandle{}) _ = io.Closer(&FileHandle{}) _ = io.Reader(&FileHandle{}) _ = io.ReaderAt(&FileHandle{}) _ = io.WriterTo(&FileHandle{}) _ = io.Seeker(&FileHandle{}) }
//Log.Infof("OCILobClose %p\n%s", lob, getStack(1)) r := C.OCILobClose( ses.ocisvcctx, //OCISvcCtx *svchp, ses.srv.env.ocierr, //OCIError *errhp, lob, //OCILobLocator *locp, ) C.OCIDescriptorFree(unsafe.Pointer(lob), //void *descp, C.OCI_DTYPE_LOB) //ub4 type ); if r == C.OCI_ERROR { return ses.srv.env.ociError() } return nil } var _ = io.Reader((*lobReader)(nil)) var _ = io.WriterTo((*lobReader)(nil)) type lobReader struct { ses *Ses ociLobLocator *C.OCILobLocator charsetForm C.ub1 piece C.ub1 off C.oraub8 interrupted bool Length C.oraub8 } // Close the LOB reader. func (lr *lobReader) Close() error { if lr.ociLobLocator == nil { return nil