本文整理汇总了C#中IFile.ReadBinary方法的典型用法代码示例。如果您正苦于以下问题:C# IFile.ReadBinary方法的具体用法?C# IFile.ReadBinary怎么用?C# IFile.ReadBinary使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IFile
的用法示例。
在下文中一共展示了IFile.ReadBinary方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Import
public override void Import(IFile fileSystem, string rootPath)
{
string folderPath = GetFolder(rootPath);
string fileFullPath = System.IO.Path.Combine(folderPath, GetExportedFilename());
content = fileSystem.ReadBinary(fileFullPath);
}
示例2: Import
public override void Import(IFile fileSystem, string rootPath)
{
string folderPath = GetFolder(rootPath);
string indexFullPath = System.IO.Path.Combine(folderPath, INDEX_FILENAME);
string jsonContent = fileSystem.ReadText(indexFullPath);
_data = JsonConvert.DeserializeObject<Data>(jsonContent);
foreach(var textureFilename in _data.exportedImageNameList)
{
elementList.Add(fileSystem.ReadBinary(System.IO.Path.Combine(folderPath, textureFilename)));
}
}
示例3: Import
public override void Import(IFile fileSystem, string rootPath)
{
string importPath = GetFolder(rootPath);
string indexFilePath = System.IO.Path.Combine(importPath, INDEX_FILENAME);
string indexString = fileSystem.ReadText(indexFilePath);
_data = JsonConvert.DeserializeObject<Data>(indexString);
foreach(var filename in _data.audioFileNameList)
{
string audioPath = System.IO.Path.Combine(importPath, filename);
audioList.Add(fileSystem.ReadBinary(audioPath));
}
}
示例4: Import
public override void Import(IFile fileSystem, string rootPath)
{
string folderPath = GetFolder(rootPath);
string indexFilePath = System.IO.Path.Combine(folderPath, GetIndexFilename());
string indexJson = fileSystem.ReadText(indexFilePath);
List<NamedElementFilename> namedElementFilenameList = JsonConvert.DeserializeObject<List<NamedElementFilename>>(indexJson);
foreach (var namedElementFilename in namedElementFilenameList)
{
string filePath = System.IO.Path.Combine(folderPath, namedElementFilename.filename);
elementList.Add
(
new NamedElement
{
name = namedElementFilename.name,
content = fileSystem.ReadBinary(filePath)
}
);
}
}