本文整理汇总了C#中System.IO.BinaryWriter.WriteNameA4方法的典型用法代码示例。如果您正苦于以下问题:C# BinaryWriter.WriteNameA4方法的具体用法?C# BinaryWriter.WriteNameA4怎么用?C# BinaryWriter.WriteNameA4使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.IO.BinaryWriter
的用法示例。
在下文中一共展示了BinaryWriter.WriteNameA4方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WriteTo
public void WriteTo(Stream stream)
{
BinaryWriter writer = new BinaryWriter(stream);
writer.Write(m_Component.Count);
for (int i = 0; i < m_Component.Count; i++)
{
writer.Write((int)m_Component[i].Key);
m_Component[i].Value.WriteTo(stream);
}
writer.Write(m_Layer);
writer.WriteNameA4(m_Name);
writer.Write(m_Tag);
writer.Write(m_isActive);
}
示例2: WriteTo
public void WriteTo(Stream stream)
{
BinaryWriter writer = new BinaryWriter(stream);
writer.WriteNameA4(m_Name);
writer.Write(m_SubMeshes.Count);
for (int i = 0; i < m_SubMeshes.Count; i++)
{
m_SubMeshes[i].WriteTo(stream);
}
m_Shapes.WriteTo(stream);
writer.Write(m_BindPose.Count);
for (int i = 0; i < m_BindPose.Count; i++)
{
writer.Write(m_BindPose[i]);
}
writer.Write(m_BoneNameHashes.Count);
for (int i = 0; i < m_BoneNameHashes.Count; i++)
{
writer.Write(m_BoneNameHashes[i]);
}
writer.Write(m_RootBoneNameHash);
writer.Write(m_MeshCompression);
writer.Write(m_StreamCompression);
writer.Write(m_IsReadable);
writer.Write(m_KeepVertices);
writer.Write(m_KeepIndices);
writer.BaseStream.Position += 3;
writer.Write(m_IndexBuffer.Length);
writer.Write(m_IndexBuffer);
if ((m_IndexBuffer.Length & 3) > 0)
{
writer.BaseStream.Position += 4 - (m_IndexBuffer.Length & 3);
}
writer.Write(m_Skin.Count);
for (int i = 0; i < m_Skin.Count; i++)
{
m_Skin[i].WriteTo(stream);
}
m_VertexData.WriteTo(stream);
m_CompressedMesh.WriteTo(stream);
m_LocalAABB.WriteTo(stream);
writer.Write(m_MeshUsageFlags);
}
示例3: WriteTo
public void WriteTo(Stream stream)
{
BinaryWriter writer = new BinaryWriter(stream);
writer.WriteNameA4(m_Name);
writer.Write(m_ControllerSize);
m_Controller.WriteTo(stream);
writer.Write(m_TOS.Count);
for (int i = 0; i < m_TOS.Count; i++)
{
writer.Write(m_TOS[i].Key);
writer.WriteNameA4(m_TOS[i].Value);
}
writer.Write(m_AnimationClips.Count);
for (int i = 0; i < m_AnimationClips.Count; i++)
{
m_AnimationClips[i].WriteTo(stream);
}
}
示例4: WriteTo
public void WriteTo(Stream stream)
{
BinaryWriter writer = new BinaryWriter(stream);
writer.WriteNameA4(m_Name);
writer.Write(m_Format);
writer.Write(m_Type);
writer.Write(m_3D);
writer.Write(m_UseHardware);
writer.Write(new byte[2]);
writer.Write(m_Stream);
writer.Write(m_AudioData.Length);
writer.Write(m_AudioData);
}
示例5: WriteTo
public void WriteTo(Stream stream)
{
UpdateComponents();
BinaryWriter writer = new BinaryWriter(stream);
writer.WriteNameA4(m_Name);
writer.Write(m_PreloadTable.Count);
for (int i = 0; i < m_PreloadTable.Count; i++)
{
m_PreloadTable[i].WriteTo(stream);
}
writer.Write(m_Container.Count);
for (int i = 0; i < m_Container.Count; i++)
{
writer.WriteNameA4(m_Container[i].Key);
m_Container[i].Value.WriteTo(stream);
}
m_MainAsset.WriteTo(stream);
writer.Write(m_ScriptCompatibility.Length);
for (int i = 0; i < m_ScriptCompatibility.Length; i++)
{
m_ScriptCompatibility[i].WriteTo(stream);
}
writer.Write(m_ClassCompatibility.Length);
for (int i = 0; i < m_ClassCompatibility.Length; i++)
{
writer.Write(m_ClassCompatibility[i].Key);
writer.Write(m_ClassCompatibility[i].Value);
}
writer.Write(m_RuntimeCompatibility);
}
示例6: WriteTo
public void WriteTo(Stream stream)
{
BinaryWriter writer = new BinaryWriter(stream);
writer.WriteNameA4(m_Name);
m_Shader.WriteTo(stream);
writer.Write(m_ShaderKeywords.Count);
for (int i = 0; i < m_ShaderKeywords.Count; i++)
{
writer.WriteNameA4(m_ShaderKeywords[i]);
}
writer.Write(m_CustomRenderQueue);
m_SavedProperties.WriteTo(stream);
}
示例7: WriteTo
public void WriteTo(Stream stream)
{
BinaryWriter writer = new BinaryWriter(stream);
writer.WriteNameA4(m_Name);
m_Rect.WriteTo(stream);
writer.Write(m_Offset);
writer.Write(m_Border);
writer.Write(m_PixelsToUnits);
writer.Write(m_Extrude);
m_RD.WriteTo(stream);
}
示例8: WriteTo
public void WriteTo(Stream stream)
{
BinaryWriter writer = new BinaryWriter(stream);
writer.WriteNameA4(m_Name);
writer.Write(m_Width);
writer.Write(m_Height);
writer.Write(m_CompleteImageSize);
writer.Write((int)m_TextureFormat);
writer.Write(m_MipMap);
writer.Write(m_isReadable);
writer.Write(m_ReadAllowed);
writer.Write((byte)0);
writer.Write(m_ImageCount);
writer.Write(m_TextureDimension);
m_TextureSettings.WriteTo(stream);
writer.Write(m_LightmapFormat);
writer.Write(m_ColorSpace);
writer.Write(image_data.Length);
writer.Write(image_data);
writer.Write(new byte[4 - image_data.Length & 3]);
}
示例9: WriteTo
public void WriteTo(Stream stream)
{
BinaryWriter writer = new BinaryWriter(stream);
writer.WriteNameA4(m_Name);
writer.WriteNameA4(m_Script);
writer.WriteNameA4(m_PathName);
writer.Write(m_Dependencies.Count);
for (int i = 0; i < m_Dependencies.Count; i++)
{
m_Dependencies[i].WriteTo(stream);
}
writer.Write(m_ShaderIsBaked);
writer.Write(new byte[3]);
}
示例10: WriteTo
public void WriteTo(Stream stream)
{
BinaryWriter writer = new BinaryWriter(stream);
writer.WriteNameA4(m_Name);
writer.Write(m_AvatarSize);
m_Avatar.WriteTo(stream);
writer.Write(m_TOS.Count);
for (int i = 0; i < m_TOS.Count; i++)
{
writer.Write(m_TOS[i].Key);
writer.WriteNameA4(m_TOS[i].Value);
}
}
示例11: WriteTo
public void WriteTo(Stream stream)
{
BinaryWriter writer = new BinaryWriter(stream);
writer.WriteNameA4(m_Name);
writer.Write(m_ExecutionOrder);
writer.Write(m_PropertiesHash);
writer.WriteNameA4(m_ClassName);
writer.WriteNameA4(m_Namespace);
writer.WriteNameA4(m_AssemblyName);
writer.Write(m_IsEditorScript);
}