W3cubDocs

/Haxe C#

FileStream

package cs.system.io

extends StreamMarshalByRefObject

@:libType@:csNative@:native("System.IO.FileStream") Available on cs

Constructor

@:final @:overload new (handle:IntPtr, access:FileAccess)

@:final @:overload new (path:String, mode:FileMode, rights:FileSystemRights, share:FileShare, bufferSize:Int, options:FileOptions, fileSecurity:FileSecurity)

@:final @:overload new (path:String, mode:FileMode, rights:FileSystemRights, share:FileShare, bufferSize:Int, options:FileOptions)

@:final @:overload new (handle:SafeFileHandle, access:FileAccess, bufferSize:Int, isAsync:Bool)

@:final @:overload new (handle:SafeFileHandle, access:FileAccess, bufferSize:Int)

@:final @:overload new (handle:SafeFileHandle, access:FileAccess)

@:final @:overload new (path:String, mode:FileMode, access:FileAccess, share:FileShare, bufferSize:Int, options:FileOptions)

@:final @:overload new (path:String, mode:FileMode, access:FileAccess, share:FileShare, bufferSize:Int, useAsync:Bool)

@:final @:overload new (path:String, mode:FileMode, access:FileAccess, share:FileShare, bufferSize:Int)

@:final @:overload new (path:String, mode:FileMode, access:FileAccess, share:FileShare)

@:final @:overload new (path:String, mode:FileMode, access:FileAccess)

@:final @:overload new (path:String, mode:FileMode)

@:final @:overload new (handle:IntPtr, access:FileAccess, ownsHandle:Bool, bufferSize:Int, isAsync:Bool)

@:final @:overload new (handle:IntPtr, access:FileAccess, ownsHandle:Bool, bufferSize:Int)

@:final @:overload new (handle:IntPtr, access:FileAccess, ownsHandle:Bool)

Variables

read only Handle:IntPtr

read only IsAsync:Bool

read only Name:String

read only SafeFileHandle:SafeFileHandle

Methods

@:final @:overload GetAccessControl ():FileSecurity

@:overload Lock (position:Int64, length:Int64):Void

@:final @:overload SetAccessControl (fileSecurity:FileSecurity):Void

@:overload Unlock (position:Int64, length:Int64):Void

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cs/system/io/FileStream.html