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.
Exibir arquivo Open project: dolkensp/HoloXPLOR Class Usage Examples

Public Methods

Method 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 method

public static GetPath ( this target ) : String
target this
return String

ReadAllBytes() public static method

public static ReadAllBytes ( this stream ) : Byte[]
stream this
return Byte[]

ReadCString() public static method

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

ReadFString() public static method

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
return String

ReadGuid() public static method

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

ReadPString() public static method

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
return String

Rename() public static method

public static Rename ( this element, String name ) : XmlElement
element this
name String
return System.Xml.XmlElement