ProtoFile<T>

Namespace: uModIO

Assembly: uMod.Core.dll

Inheritance ObjectDataFileDataFile<T> ProtoFile

Implements IDataFile, IDataObject, IDataFile<T>

Summary

Represents a protobuf file

Constructors

Name

Summary

ProtoFile (String)

Create new binary file

ProtoFile (String, Type, T)

ProtoFile (String, T)

Properties

Name

Summary

Extension

Gets the extension associated with file type

Object

Gets or sets the object

ObjectType

Gets or sets the object type

Methods

Name

Summary

As<TConvert> ()

Converts data file to specified type

FromString (String)

Deserialize protobuf string

Load ()

Load file synchronously (not recommended)

Save ()

Save file synchronously (not recommended)

ToAttachment (String)

Converts protobuf file to file attachment

ToString ()

Convert object to serialized string