OscarLob¶
CLOB 和 BLOB 类型大对象对外公共类,处理读写操作.
public sealed class OscarLob : IDisposable
属性¶
// 获取最大读写大小
public int MaxRWSize { get; }
// 获取LOB对象长度
public long DataLength { get; }
方法¶
// 创建临时 BFILE 大对象
public static OscarLob CreateTempBFile(OscarConnection connection);
// 创建临时 BLOB 大对象
public static OscarLob CreateTempBlob(OscarConnection connection);
// 创建临时 CLOB 大对象
public static OscarLob CreateTempClob(OscarConnection connection);
// 释放LOB大对象
public void Close();
// 继承 IDisposeable 接口,释放LOB大对象
public void Dispose();
// 获取LOB大对象是否打开
public bool IsOpen();
// 读取LOB大对象数据
public int Read(byte[] buf, int off, int len);
// 读取LOB大对象数据
public long Read(byte[] buf, long off, long len);
// 读取LOB大对象数据
public long Read(byte[] buf, long len);
// 读取LOB大对象数据
public string Read();
// 读取LOB大对象数据
public int Read(byte[] buf);
// 读取BFILE大对象数据
public int ReadBFile(byte[] buffer, int offset, int count);
// 读取LOB大对象数据
public long ReadOffset(long offset, byte[] buf, long bufferoffset, long len);
// 读取LOB大对象数据
public long ReadOffset(long offset, byte[] buf, int bufferoffset, int len);
// 写入LOB大对象数据
public void Write(byte[] buffer);
// 写入LOB大对象数据
public int Write(byte[] buf, int write_len);
// 写入LOB大对象数据
public void Write(byte[] buf, int off, int len);
// 写入LOB大对象数据
public void Write(Stream stream);
相关引用