C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

GetPath() публичный статический Метод

public static GetPath ( this target ) : String
target this
Результат String

ReadAllBytes() публичный статический Метод

public static ReadAllBytes ( this stream ) : Byte[]
stream this
Результат Byte[]

ReadCString() публичный статический Метод

Read a NULL-Terminated string from the stream
public static ReadCString ( this binaryReader ) : String
binaryReader this
Результат String

ReadFString() публичный статический Метод

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
Результат String

ReadGuid() публичный статический Метод

public static ReadGuid ( this reader, System.Boolean nullable = true ) : Guid?
reader this
nullable System.Boolean
Результат Guid?

ReadPString() публичный статический Метод

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
Результат String

Rename() публичный статический Метод

public static Rename ( this element, String name ) : XmlElement
element this
name String
Результат System.Xml.XmlElement