當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。