C# Class HibernatingRhinos.PhoneBook.Library.PersistentPhoneBook

Inheritance: IDisposable
ファイルを表示 Open project: ayende/HibernatingRhinos.PhoneBook Class Usage Examples

Public Methods

Method Description
Create ( Entry entry ) : void
Delete ( Entry entry ) : void
Dispose ( ) : void
Edit ( Entry entry ) : void
PersistentPhoneBook ( Stream stream, bool streamOwner = true ) : System
PersistentPhoneBook ( string path ) : System
ReadEntries ( ) : IEnumerable

Private Methods

Method Description
Compact ( ) : void
GetEntriesPositions ( ) : EntriesPositions
ReadBuffer ( int len ) : byte[]
ReadEntry ( ) : Entry
ReadString ( ) : string
WriteString ( string val ) : void
WriteToStream ( Entry entry ) : void

Method Details

Create() public method

public Create ( Entry entry ) : void
entry Entry
return void

Delete() public method

public Delete ( Entry entry ) : void
entry Entry
return void

Dispose() public method

public Dispose ( ) : void
return void

Edit() public method

public Edit ( Entry entry ) : void
entry Entry
return void

PersistentPhoneBook() public method

public PersistentPhoneBook ( Stream stream, bool streamOwner = true ) : System
stream Stream
streamOwner bool
return System

PersistentPhoneBook() public method

public PersistentPhoneBook ( string path ) : System
path string
return System

ReadEntries() public method

public ReadEntries ( ) : IEnumerable
return IEnumerable