Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

ISeekable Struct Reference

Inheritance diagram for ISeekable:

FileConduit List of all members.

Public Types

enum  SeekAnchor { Begin = 0, Current = 1, End = 2 }

Public Member Functions

ulong getPosition ()
ulong seek (ulong offset, SeekAnchor anchor=SeekAnchor.Begin)

Detailed Description

Models the ability to seek within a conduit.

Definition at line 287 of file IConduit.d.


Member Enumeration Documentation

enum SeekAnchor
 

The anchor positions supported by ISeekable

Enumeration values:
Begin 
Current 
End 

Definition at line 295 of file IConduit.d.


Member Function Documentation

ulong getPosition  ) 
 

Return the current conduit position (such as file position)

Reimplemented in FileConduit.

ulong seek ulong  offset,
SeekAnchor  anchor = SeekAnchor.Begin
 

Move the file position to the given offset from the provided anchor point, and return the adjusted position.

Referenced by FileBucket::Record::createBucket(), FileConduit::getPosition(), FileConduit::length(), FileBucket::Record::read(), FileBucket::this(), and FileBucket::Record::write().


The documentation for this struct was generated from the following file:
Generated on Sat Dec 24 17:28:40 2005 for Mango by  doxygen 1.4.0