Functions.FGetBuffer 方法 | |
Access or allocate the File I/O Buffer used by the X# Runtime for Low Level File Access for a file.
命名空间:
XSharp.Core
程序集:
XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法 FUNCTION FGetBuffer(
hFile AS IntPtr,
nSize AS LONG
) AS BYTE[]
public static byte[] FGetBuffer(
IntPtr hFile,
int nSize
)
查看代码参数
- hFile
- 类型:IntPtr
- nSize
- 类型:Int32
The size of the buffer that you would like to allocate.s
返回值
类型:
ByteThe Byte[] associated with the file handle for an open file.
When the file handle is invalid then a NULL object will be returned.
备注 This function will either return the existing buffer or allocate a new buffer of the requested size.
When there is already a buffer allocated for the file handle, and this buffer is large enough then the existing buffer is returned.
When the size requested exceeds the size of the allocated buffer, or when no buffer exists, then a new byte array will be allocated.
参见