C# Class IronPython.Modules.PythonIOModule.FileIO

Inheritance: _RawIOBase, IDisposable, IWeakReferenceable, ICodeFormattable, IDynamicMetaObjectProvider
Mostrar archivo Open project: jschementi/iron

Public Properties

Property Type Description
name object

Private Properties

Property Type Description
BadMode void
EnsureReadable void
EnsureWritable void
IDisposable void
IDynamicMetaObjectProvider DynamicMetaObject
IWeakReferenceable IronPython.Runtime.WeakRefTracker
IWeakReferenceable bool
IWeakReferenceable void
OpenFile Stream
SeekToEnd void
StandardizeMode string
close void
fileno int
flush void
isatty bool
read object
readable bool
readall System.Bytes
readinto BigInteger
seek BigInteger
seekable bool
tell BigInteger
truncate BigInteger
writable bool
write BigInteger
write BigInteger
write BigInteger

Public Methods

Method Description
FileIO ( CodeContext context, int fd, [ mode, [ closefd ) : System
FileIO ( CodeContext context, string name, [ mode, [ closefd ) : System
__repr__ ( CodeContext context ) : string
readinto ( CodeContext context, object buf ) : BigInteger
seek ( double offset, [ whence ) : BigInteger
truncate ( BigInteger size ) : BigInteger
truncate ( double size ) : BigInteger

Private Methods

Method Description
BadMode ( string mode ) : void
EnsureReadable ( ) : void
EnsureWritable ( ) : void
IDisposable ( ) : void
IDynamicMetaObjectProvider ( Expression parameter ) : DynamicMetaObject
IWeakReferenceable ( ) : IronPython.Runtime.WeakRefTracker
IWeakReferenceable ( IronPython.Runtime.WeakRefTracker value ) : bool
IWeakReferenceable ( IronPython.Runtime.WeakRefTracker value ) : void
OpenFile ( CodeContext context, PlatformAdaptationLayer pal, string name, FileMode fileMode, FileAccess fileAccess, FileShare fileShare ) : Stream
SeekToEnd ( ) : void
StandardizeMode ( string mode ) : string

Remove all 'b's from mode string to simplify parsing

close ( CodeContext context ) : void
fileno ( CodeContext context ) : int
flush ( CodeContext context ) : void
isatty ( CodeContext context ) : bool
read ( CodeContext context, [ size ) : object
readable ( CodeContext context ) : bool
readall ( ) : System.Bytes
readinto ( [ buffer ) : BigInteger
seek ( CodeContext context, BigInteger offset, [ whence ) : BigInteger
seekable ( CodeContext context ) : bool
tell ( CodeContext context ) : BigInteger
truncate ( CodeContext context, [ pos ) : BigInteger
writable ( CodeContext context ) : bool
write ( CodeContext context, object b ) : BigInteger
write ( [ b ) : BigInteger
write ( [ b ) : BigInteger

Method Details

FileIO() public method

public FileIO ( CodeContext context, int fd, [ mode, [ closefd ) : System
context CodeContext
fd int
mode [
closefd [
return System

FileIO() public method

public FileIO ( CodeContext context, string name, [ mode, [ closefd ) : System
context CodeContext
name string
mode [
closefd [
return System

__repr__() public method

public __repr__ ( CodeContext context ) : string
context CodeContext
return string

readinto() public method

public readinto ( CodeContext context, object buf ) : BigInteger
context CodeContext
buf object
return BigInteger

seek() public method

public seek ( double offset, [ whence ) : BigInteger
offset double
whence [
return BigInteger

truncate() public method

public truncate ( BigInteger size ) : BigInteger
size BigInteger
return BigInteger

truncate() public method

public truncate ( double size ) : BigInteger
size double
return BigInteger

Property Details

name public_oe property

public object name
return object