IByteProvider.cs :  » Development » Be.HexEditor » Be » Windows » Forms » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Development » Be.HexEditor 
Be.HexEditor » Be » Windows » Forms » IByteProvider.cs
using System;

namespace Be.Windows.Forms{
  /// <summary>
  /// Defines a byte provider for HexBox control
  /// </summary>
  public interface IByteProvider
  {
    /// <summary>
    /// Reads a byte from the provider
    /// </summary>
    /// <param name="index">the index of the byte to read</param>
    /// <returns>the byte to read</returns>
    byte ReadByte(long index);
    /// <summary>
    /// Writes a byte into the provider
    /// </summary>
    /// <param name="index">the index of the byte to write</param>
    /// <param name="value">the byte to write</param>
    void WriteByte(long index, byte value);
    /// <summary>
    /// Inserts bytes into the provider
    /// </summary>
    /// <param name="index"></param>
    /// <param name="bs"></param>
    /// <remarks>This method must raise the LengthChanged event.</remarks>
    void InsertBytes(long index, byte[] bs);
    /// <summary>
    /// Deletes bytes from the provider
    /// </summary>
    /// <param name="index">the start index of the bytes to delete</param>
    /// <param name="length">the length of the bytes to delete</param>
    /// <remarks>This method must raise the LengthChanged event.</remarks>
    void DeleteBytes(long index, long length);

    /// <summary>
    /// Returns the total length of bytes the byte provider is providing.
    /// </summary>
    long Length {get;}
    /// <summary>
    /// Occurs, when the Length property changed.
    /// </summary>
    event EventHandler LengthChanged;

    /// <summary>
    /// True, when changes are done.
    /// </summary>
    bool HasChanges();
    /// <summary>
    /// Applies changes.
    /// </summary>
    void ApplyChanges();
    /// <summary>
    /// Occurs, when bytes are changed.
    /// </summary>
    event EventHandler Changed;

    /// <summary>
    /// Returns a value if the WriteByte methods is supported by the provider.
    /// </summary>
    /// <returns>True, when its supported.</returns>
    bool SupportsWriteByte();
    /// <summary>
    /// Returns a value if the InsertBytes methods is supported by the provider.
    /// </summary>
    /// <returns>True, when its supported.</returns>
    bool SupportsInsertBytes();
    /// <summary>
    /// Returns a value if the DeleteBytes methods is supported by the provider.
    /// </summary>
    /// <returns>True, when its supported.</returns>
    bool SupportsDeleteBytes();
  }
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.