C# Class System.Runtime.Serialization.Plists.BinaryPlistWriter

ファイルを表示 Open project: ChadBurggraf/plists-cs

Public Methods

Method Description
BinaryPlistWriter ( ) : System

Initializes a new instance of the BinaryPlistWriter class.

WriteObject ( Stream stream, IDictionary dictionary ) : void

Writes the specified IDictionary object to the given stream as a binary plist.

WriteObject ( Stream stream, IDictionary dictionary, bool closeStream ) : void

Writes the specified IDictionary object to the given stream as a binary plist.

WriteObject ( Stream stream, IPlistSerializable obj ) : void

Writes the specified IPlistSerializable object to the given stream as a binary plist.

WriteObject ( Stream stream, IPlistSerializable obj, bool closeStream ) : void

Writes the specified IPlistSerializable object to the given stream as a binary plist.

WriteObject ( string path, IDictionary dictionary ) : void

Writes the specified IDictionary object to the given file path as a binary plist.

WriteObject ( string path, IPlistSerializable obj ) : void

Writes the specified IPlistSerializable object to the given file path as a binary plist.

Private Methods

Method Description
AddArray ( IEnumerable value ) : int

Adds an array to the internal object table.

AddData ( object value ) : int

Adds arbitrary data to the internal object table.

AddDate ( System.DateTime value ) : int

Adds a date to the internal object table.

AddDictionary ( IDictionary value ) : int

Adds a dictionary to the internal object table.

AddDouble ( double value ) : int

Adds a double to the internal object table.

AddFloat ( float value ) : int

Adds a float to the internal object table.

AddInteger ( long value ) : int

Adds an integer to the internal object table.

AddIntegerCount ( IList buffer, int count ) : void

Adds an integer count to the given buffer.

AddObject ( object value ) : int

Adds an object to the internal object table.

AddPrimitive ( bool value ) : int

Adds a primitive to the internal object table.

AddString ( string value ) : int

Adds a string to the internal object table.

CalculateObjectRefSize ( ) : void

Calculates the object ref size to use for this instance's current state.

GetIntegerBytes ( long value ) : byte[]

Gets a big-endian byte array that corresponds to the given integer value.

Reset ( ) : void

Resets this instance's state.

WriteArray ( BinaryWriter writer, BinaryPlistItem value ) : int

Writes an array item to the given BinaryWriter.

WriteDictionary ( BinaryWriter writer, BinaryPlistItem value ) : int

Writes a dictionary item to the given BinaryWriter.

WriteObjectTable ( BinaryWriter writer ) : int

Write the object table to the given BinaryWriter.

WriteReferenceInteger ( BinaryWriter writer, long value, int size ) : int

Writes the given value using the number of bytes indicated by the specified size to the given BinaryWriter.

Method Details

BinaryPlistWriter() public method

Initializes a new instance of the BinaryPlistWriter class.
public BinaryPlistWriter ( ) : System
return System

WriteObject() public method

Writes the specified IDictionary object to the given stream as a binary plist.
public WriteObject ( Stream stream, IDictionary dictionary ) : void
stream Stream The stream to write to.
dictionary IDictionary The object to write.
return void

WriteObject() public method

Writes the specified IDictionary object to the given stream as a binary plist.
public WriteObject ( Stream stream, IDictionary dictionary, bool closeStream ) : void
stream Stream The stream to write to.
dictionary IDictionary The object to write.
closeStream bool A value indicating whether to close the stream after the write operation completes.
return void

WriteObject() public method

Writes the specified IPlistSerializable object to the given stream as a binary plist.
public WriteObject ( Stream stream, IPlistSerializable obj ) : void
stream Stream The stream to write to.
obj IPlistSerializable The object to write.
return void

WriteObject() public method

Writes the specified IPlistSerializable object to the given stream as a binary plist.
public WriteObject ( Stream stream, IPlistSerializable obj, bool closeStream ) : void
stream Stream The stream to write to.
obj IPlistSerializable The object to write.
closeStream bool A value indicating whether to close the stream after the write operation completes.
return void

WriteObject() public method

Writes the specified IDictionary object to the given file path as a binary plist.
public WriteObject ( string path, IDictionary dictionary ) : void
path string The file path to write to.
dictionary IDictionary The object to write.
return void

WriteObject() public method

Writes the specified IPlistSerializable object to the given file path as a binary plist.
public WriteObject ( string path, IPlistSerializable obj ) : void
path string The file path to write to.
obj IPlistSerializable The object to write.
return void