57 lines
1.3 KiB
C#
57 lines
1.3 KiB
C#
using System;
|
|
|
|
namespace rail
|
|
{
|
|
public class IRailStreamFileImpl : RailObject, IRailStreamFile, IRailComponent
|
|
{
|
|
internal IRailStreamFileImpl(IntPtr cPtr)
|
|
{
|
|
swigCPtr_ = cPtr;
|
|
}
|
|
|
|
~IRailStreamFileImpl()
|
|
{
|
|
}
|
|
|
|
public virtual string GetFilename()
|
|
{
|
|
return UTF8Marshaler.MarshalNativeToString(RAIL_API_PINVOKE.IRailStreamFile_GetFilename(swigCPtr_));
|
|
}
|
|
|
|
public virtual RailResult AsyncRead(int offset, uint bytes_to_read, string user_data)
|
|
{
|
|
return (RailResult)RAIL_API_PINVOKE.IRailStreamFile_AsyncRead(swigCPtr_, offset, bytes_to_read, user_data);
|
|
}
|
|
|
|
public virtual RailResult AsyncWrite(byte[] buff, uint bytes_to_write, string user_data)
|
|
{
|
|
return (RailResult)RAIL_API_PINVOKE.IRailStreamFile_AsyncWrite(swigCPtr_, buff, bytes_to_write, user_data);
|
|
}
|
|
|
|
public virtual ulong GetSize()
|
|
{
|
|
return RAIL_API_PINVOKE.IRailStreamFile_GetSize(swigCPtr_);
|
|
}
|
|
|
|
public virtual RailResult Close()
|
|
{
|
|
return (RailResult)RAIL_API_PINVOKE.IRailStreamFile_Close(swigCPtr_);
|
|
}
|
|
|
|
public virtual void Cancel()
|
|
{
|
|
RAIL_API_PINVOKE.IRailStreamFile_Cancel(swigCPtr_);
|
|
}
|
|
|
|
public virtual ulong GetComponentVersion()
|
|
{
|
|
return RAIL_API_PINVOKE.IRailComponent_GetComponentVersion(swigCPtr_);
|
|
}
|
|
|
|
public virtual void Release()
|
|
{
|
|
RAIL_API_PINVOKE.IRailComponent_Release(swigCPtr_);
|
|
}
|
|
}
|
|
}
|