C# Class Dolkens.Framework.BinaryExtensions.ExtensionMethods

The MIT License (MIT) Copyright (c) 2008 Peter Dolkens Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Afficher le fichier Open project: dolkensp/HoloXPLOR Class Usage Examples

Méthodes publiques

Méthode Description
GetPath ( this target ) : String
ReadAllBytes ( this stream ) : Byte[]
ReadCString ( this binaryReader ) : String

Read a NULL-Terminated string from the stream

ReadFString ( this binaryReader, Int32 stringLength ) : String

Read a Fixed-Length string from the stream

ReadGuid ( this reader, System.Boolean nullable = true ) : Guid?
ReadPString ( this binaryReader, StringSizeEnum byteLength = StringSizeEnum.Int32 ) : String

Read a Length-prefixed string from the stream

Rename ( this element, String name ) : XmlElement

Method Details

GetPath() public static méthode

public static GetPath ( this target ) : String
target this
Résultat String

ReadAllBytes() public static méthode

public static ReadAllBytes ( this stream ) : Byte[]
stream this
Résultat Byte[]

ReadCString() public static méthode

Read a NULL-Terminated string from the stream
public static ReadCString ( this binaryReader ) : String
binaryReader this
Résultat String

ReadFString() public static méthode

Read a Fixed-Length string from the stream
public static ReadFString ( this binaryReader, Int32 stringLength ) : String
binaryReader this
stringLength System.Int32 Size of the String
Résultat String

ReadGuid() public static méthode

public static ReadGuid ( this reader, System.Boolean nullable = true ) : Guid?
reader this
nullable System.Boolean
Résultat Guid?

ReadPString() public static méthode

Read a Length-prefixed string from the stream
public static ReadPString ( this binaryReader, StringSizeEnum byteLength = StringSizeEnum.Int32 ) : String
binaryReader this
byteLength StringSizeEnum Size of the Length representation
Résultat String

Rename() public static méthode

public static Rename ( this element, String name ) : XmlElement
element this
name String
Résultat System.Xml.XmlElement