HexBox
Search Results for

    Show / Hide Table of Contents

    Class DynamicFileByteProvider

    Implements a fully editable byte provider for file data of any size.

    Inheritance
    object
    DynamicFileByteProvider
    Implements
    IByteProvider
    IDisposable
    Inherited Members
    object.GetType()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Be.Windows.Forms
    Assembly: Be.Windows.Forms.HexBox.dll
    Syntax
    public sealed class DynamicFileByteProvider : IByteProvider, IDisposable
    Remarks

    Only changes to the file are stored in memory with reads from the original data occurring as required.

    Constructors

    View Source

    DynamicFileByteProvider(Stream)

    Constructs a new DynamicFileByteProvider instance.

    Declaration
    public DynamicFileByteProvider(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    the stream containing the data.

    Remarks

    The stream must supported seek operations.

    View Source

    DynamicFileByteProvider(string)

    Constructs a new DynamicFileByteProvider instance.

    Declaration
    public DynamicFileByteProvider(string fileName)
    Parameters
    Type Name Description
    string fileName

    The name of the file from which bytes should be provided.

    View Source

    DynamicFileByteProvider(string, bool)

    Constructs a new DynamicFileByteProvider instance.

    Declaration
    public DynamicFileByteProvider(string fileName, bool readOnly)
    Parameters
    Type Name Description
    string fileName

    The name of the file from which bytes should be provided.

    bool readOnly

    True, opens the file in read-only mode.

    Properties

    View Source

    Length

    See Length for more information.

    Declaration
    public long Length { get; }
    Property Value
    Type Description
    long
    View Source

    ReadOnly

    Gets a value, if the file is opened in read-only mode.

    Declaration
    public bool ReadOnly { get; }
    Property Value
    Type Description
    bool

    Methods

    View Source

    ApplyChanges()

    See ApplyChanges() for more information.

    Declaration
    public void ApplyChanges()
    View Source

    DeleteBytes(long, long)

    See DeleteBytes(long, long) for more information.

    Declaration
    public void DeleteBytes(long index, long length)
    Parameters
    Type Name Description
    long index
    long length
    View Source

    Dispose()

    See Dispose() for more information.

    Declaration
    public void Dispose()
    View Source

    ~DynamicFileByteProvider()

    See ~Object() for more information.

    Declaration
    protected ~DynamicFileByteProvider()
    View Source

    HasChanges()

    See HasChanges() for more information.

    Declaration
    public bool HasChanges()
    Returns
    Type Description
    bool
    View Source

    InsertBytes(long, byte[])

    See InsertBytes(long, byte[]) for more information.

    Declaration
    public void InsertBytes(long index, byte[] bs)
    Parameters
    Type Name Description
    long index
    byte[] bs
    View Source

    ReadByte(long)

    See ReadByte(long) for more information.

    Declaration
    public byte ReadByte(long index)
    Parameters
    Type Name Description
    long index
    Returns
    Type Description
    byte
    View Source

    SupportsDeleteBytes()

    See SupportsDeleteBytes() for more information.

    Declaration
    public bool SupportsDeleteBytes()
    Returns
    Type Description
    bool
    View Source

    SupportsInsertBytes()

    See SupportsInsertBytes() for more information.

    Declaration
    public bool SupportsInsertBytes()
    Returns
    Type Description
    bool
    View Source

    SupportsWriteByte()

    See SupportsWriteByte() for more information.

    Declaration
    public bool SupportsWriteByte()
    Returns
    Type Description
    bool
    View Source

    WriteByte(long, byte)

    See WriteByte(long, byte) for more information.

    Declaration
    public void WriteByte(long index, byte value)
    Parameters
    Type Name Description
    long index
    byte value

    Events

    View Source

    Changed

    See Changed for more information.

    Declaration
    public event EventHandler Changed
    Event Type
    Type Description
    EventHandler
    View Source

    LengthChanged

    See LengthChanged for more information.

    Declaration
    public event EventHandler LengthChanged
    Event Type
    Type Description
    EventHandler

    Implements

    IByteProvider
    IDisposable
    • View Source
    In this article
    Back to top Generated by DocFX