Vixen
02b45cc4
csharp
public static class Serializer

The short way to say it, for callers that have a whole value and want whole bytes.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The SerializationWriter and SerializationReader underneath are the interesting part and remain public, because the asset pipeline writes many objects into one buffer and needs to control where each begins. This is for everything else.

Methods (5)

  • public static byte[] ToBytes<T>(in T value)

    Serialises a value into a new array.

  • public static long Write<T>(IBufferWriter<byte> destination, in T value)

    Serialises a value into a sink.

  • public static int Write<T>(Span<byte> destination, in T value)

    Serialises a value into a fixed buffer.

  • public static T Read<T>(ReadOnlySpan<byte> source)

    Deserialises a value.

  • public static void Read<T>(ReadOnlySpan<byte> source, ref T value)

    Deserialises into an existing value, reusing it where the serializer can.

Used by (57, showing 40)

  • AudioClipTestsVixen.Audio.Tests
  • CompositorAssetTestsVixen.Rendering.Tests
  • ContentMountVixen.App.Hosting
  • ContentReferenceTestsVixen.Assets.Tests
  • EffectCacheTestsVixen.Shaders.Tests
  • EffectDiskCacheVixen.Shaders
  • FramingVixen.Core.Serialization
  • ModelDataTestsVixen.Rendering.Tests
  • NavMeshAssetTestsVixen.Navigation.Tests
  • ObjectDatabaseVixen.Core.Serialization
  • OffMeshConnectionTestsVixen.Navigation.Tests
  • SceneAssetTestsVixen.Engine.Tests
  • SceneBehaviorBinderVixen.Engine
  • SerializationTestsVixen.Core.Serialization.Tests
  • SpriteTestsVixen.Rendering.Tests
  • VirtualGeometryContentVixen.Rendering
  • VirtualGeometryContentTestsVixen.Rendering.Tests
  • VirtualGeometryDeviceTestsVixen.Graphics.Golden.Tests
  • WorldSerializerTestsVixen.Engine.Tests
  • AnimationClipImporterVixen.Editor.Assets
  • AnimationClipImporterTestsVixen.Editor.Assets.Tests
  • AudioImporterVixen.Editor.Assets
  • AudioImporterTestsVixen.Editor.Assets.Tests
  • CompositorImporterVixen.Editor.Assets
  • ConstraintAuthoringImporterTestsVixen.Editor.Assets.Tests
  • ConstraintTemplateImporterVixen.Editor.Assets
  • ContentMountTestsVixen.App.Tests
  • ContentPipelineVixen.Editor.Assets
  • EffectBundleBuilderVixen.ShaderCompiler
  • EffectCompilerTestsVixen.ShaderCompiler.Tests
  • HarnessPlanImporterVixen.Editor.Assets
  • HarnessPlanImporterTestsVixen.Editor.Assets.Tests
  • ImportedGeometryLoadsTestsVixen.Editor.Assets.Tests
  • LooseContentVixen.Editor.Assets
  • LooseContentTestsVixen.Editor.Assets.Tests
  • MaterialImporterVixen.Editor.Assets
  • MaterialImporterTestsVixen.Editor.Assets.Tests
  • ModelImporterVixen.Editor.Assets
  • ModelImporterTestsVixen.Editor.Assets.Tests
  • MoveSetImporterVixen.Editor.Assets