Class StreamFile
Inheritance
System.Object
StreamFile
Assembly: PeNet.dll
Syntax
public class StreamFile : object, IRawFile
Constructors
|
Improve this Doc
View Source
StreamFile(Stream)
Declaration
public StreamFile(Stream file)
Parameters
Type |
Name |
Description |
Stream |
file |
|
Properties
|
Improve this Doc
View Source
Length
Declaration
public long Length { get; }
Property Value
Type |
Description |
System.Int64 |
|
Methods
|
Improve this Doc
View Source
AppendBytes(Span<Byte>)
Declaration
public int AppendBytes(Span<byte> bytes)
Parameters
Type |
Name |
Description |
Span<System.Byte> |
bytes |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
AsSpan(Int64, Int64)
Declaration
public Span<byte> AsSpan(long offset, long length)
Parameters
Type |
Name |
Description |
System.Int64 |
offset |
|
System.Int64 |
length |
|
Returns
Type |
Description |
Span<System.Byte> |
|
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
ReadAsciiString(Int64)
Declaration
public string ReadAsciiString(long offset)
Parameters
Type |
Name |
Description |
System.Int64 |
offset |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ReadByte(Int64)
Declaration
public byte ReadByte(long offset)
Parameters
Type |
Name |
Description |
System.Int64 |
offset |
|
Returns
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
ReadUInt(Int64)
Declaration
public uint ReadUInt(long offset)
Parameters
Type |
Name |
Description |
System.Int64 |
offset |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
ReadULong(Int64)
Declaration
public ulong ReadULong(long offset)
Parameters
Type |
Name |
Description |
System.Int64 |
offset |
|
Returns
Type |
Description |
System.UInt64 |
|
|
Improve this Doc
View Source
ReadUnicodeString(Int64)
Declaration
public string ReadUnicodeString(long offset)
Parameters
Type |
Name |
Description |
System.Int64 |
offset |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ReadUnicodeString(Int64, Int64)
Declaration
public string ReadUnicodeString(long offset, long length)
Parameters
Type |
Name |
Description |
System.Int64 |
offset |
|
System.Int64 |
length |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ReadUShort(Int64)
Declaration
public ushort ReadUShort(long offset)
Parameters
Type |
Name |
Description |
System.Int64 |
offset |
|
Returns
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
RemoveRange(Int64, Int64)
Declaration
public void RemoveRange(long offset, long length)
Parameters
Type |
Name |
Description |
System.Int64 |
offset |
|
System.Int64 |
length |
|
|
Improve this Doc
View Source
ToArray()
Declaration
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
WriteByte(Int64, Byte)
Declaration
public void WriteByte(long offset, byte value)
Parameters
Type |
Name |
Description |
System.Int64 |
offset |
|
System.Byte |
value |
|
|
Improve this Doc
View Source
WriteBytes(Int64, Span<Byte>)
Declaration
public void WriteBytes(long offset, Span<byte> bytes)
Parameters
Type |
Name |
Description |
System.Int64 |
offset |
|
Span<System.Byte> |
bytes |
|
|
Improve this Doc
View Source
WriteUInt(Int64, UInt32)
Declaration
public void WriteUInt(long offset, uint value)
Parameters
Type |
Name |
Description |
System.Int64 |
offset |
|
System.UInt32 |
value |
|
|
Improve this Doc
View Source
WriteULong(Int64, UInt64)
Declaration
public void WriteULong(long offset, ulong value)
Parameters
Type |
Name |
Description |
System.Int64 |
offset |
|
System.UInt64 |
value |
|
|
Improve this Doc
View Source
WriteUShort(Int64, UInt16)
Declaration
public void WriteUShort(long offset, ushort value)
Parameters
Type |
Name |
Description |
System.Int64 |
offset |
|
System.UInt16 |
value |
|
Implements
IDisposable