C# Class SwfDotNet.IO.Utils.BinaryStringRW

A helper class for reading/writing zero-byte terminated strings
Exibir arquivo Open project: bladecoding/SwfExport

Public Methods

Method Description
ReadString ( BinaryReader br ) : string

Read zero-byte terminated string with a BinaryReader

WriteString ( BinaryWriter w, string str ) : void

Write zero-byte terminated string with a BinaryWriter

Private Methods

Method Description
BinaryStringRW ( ) : System Hidden constructor, class is only used in static context.

Method Details

ReadString() public static method

Read zero-byte terminated string with a BinaryReader
public static ReadString ( BinaryReader br ) : string
br System.IO.BinaryReader
return string

WriteString() public static method

Write zero-byte terminated string with a BinaryWriter
public static WriteString ( BinaryWriter w, string str ) : void
w System.IO.BinaryWriter
str string
return void