private static extern IntPtr ManagedRandomAccessFile_Create( ReadDelegate read, CloseDelegate close, GetSizeDelegate getSize, TellDelegate tell, SeekDelegate seek, ClosedDelegate closed, out IntPtr randomAccessFile);
protected HeifReader() { this.heifReaderHandle = new DisposableLazy <SafeCoTaskMemHandle>(CreateHeifReader); this.getPositionDelegate = GetPosition; this.readDelegate = Read; this.seekDelegate = Seek; this.waitForFileSizeDelegate = WaitForFileSize; }
static CallbackHandler() { readCB = new ReadDelegate(read); writeCB = new ReadDelegate(write); seekCB = new SeekDelegate(seek); closeCB = new CloseDelegate(close); tellCB = new TellDelegate(tell); eofCB = new EofDelegate(eof); deleteCB = new DeleteDelegate(deleted); }
static CallbackHandler() { readCallback = new ReadDelegate(read); writeCallback = new WriteDelegate(write); skipCallback = new SkipDelegate(skip); seekCallback = new SeekDelegate(seek); tellCallback = new TellDelegate(tell); eofCallback = new EofDelegate(eof); closeCallback = new CloseDelegate(close); deletedCallback = new DeletedDelegate(deleted); }
private static ParquetHandle Create( ReadDelegate read, CloseDelegate close, GetSizeDelegate getSize, TellDelegate tell, SeekDelegate seek, ClosedDelegate closed) { ExceptionInfo.Check(ManagedRandomAccessFile_Create(read, close, getSize, tell, seek, closed, out var handle)); return(new ParquetHandle(handle, RandomAccessFile_Free)); }
public HeifStreamIO(Stream stream, bool ownsStream = false) { Validate.IsNotNull(stream, nameof(stream)); this.stream = stream; this.ownsStream = ownsStream; this.heifReaderHandle = new DisposableLazy <SafeCoTaskMemHandle>(CreateHeifReader); this.heifWriterHandle = new DisposableLazy <SafeCoTaskMemHandle>(CreateHeifWriter); this.streamBuffer = new byte[MaxBufferSize]; this.getPositionDelegate = GetPosition; this.readDelegate = Read; this.seekDelegate = Seek; this.waitForFileSizeDelegate = WaitForFileSize; this.writeDelegate = Write; }
private static extern IntPtr OgreManagedStream_Create(String name, IntPtr size, AccessMode accessMode, ReadDelegate read, WriteDelegate write, SkipDelegate skip, SeekDelegate seek, TellDelegate tell, EofDelegate eof, CloseDelegate close, DeletedDelegate deleted #if FULL_AOT_COMPILE , IntPtr instanceHandle #endif );
private static extern IntPtr ManagedStream_create(ReadDelegate readCB, ReadDelegate writeCB, SeekDelegate seekCB, CloseDelegate closeCB, TellDelegate tellCB, EofDelegate eofCB, DeleteDelegate deleteCB #if FULL_AOT_COMPILE , IntPtr instanceHandle #endif );