当前位置: 首页>>代码示例>>C#>>正文


C# BinaryWriter.WriteNameA4方法代码示例

本文整理汇总了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);
        }
开发者ID:hejob,项目名称:SB3Utility,代码行数:16,代码来源:GameObject.cs

示例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);
        }
开发者ID:hejob,项目名称:SB3Utility,代码行数:51,代码来源:Mesh.cs

示例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);
            }
        }
开发者ID:hejob,项目名称:SB3Utility,代码行数:20,代码来源:AnimatorController.cs

示例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);
        }
开发者ID:hejob,项目名称:SB3Utility,代码行数:14,代码来源:AudioClip.cs

示例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);
        }
开发者ID:hejob,项目名称:SB3Utility,代码行数:37,代码来源:AssetBundle.cs

示例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);
        }
开发者ID:hejob,项目名称:SB3Utility,代码行数:15,代码来源:Material.cs

示例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);
 }
开发者ID:hejob,项目名称:SB3Utility,代码行数:11,代码来源:Sprite.cs

示例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]);
 }
开发者ID:hejob,项目名称:SB3Utility,代码行数:21,代码来源:Texture2D.cs

示例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]);
        }
开发者ID:hejob,项目名称:SB3Utility,代码行数:16,代码来源:Shader.cs

示例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);
            }
        }
开发者ID:hejob,项目名称:SB3Utility,代码行数:14,代码来源:Avatar.cs

示例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);
 }
开发者ID:hejob,项目名称:SB3Utility,代码行数:11,代码来源:MonoScript.cs


注:本文中的System.IO.BinaryWriter.WriteNameA4方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。