docs.unity3d.com
    Show / Hide Table of Contents

    Struct FileReader

    Namespace: Unity.MemoryProfiler.Editor.Format.QueriedSnapshot
    Syntax
    public struct FileReader : IDisposable, IReader

    Properties

    FormatVersion

    Declaration
    public uint FormatVersion { get; }
    Property Value
    Type Description
    UInt32
    Implements
    IReader.FormatVersion

    FullPath

    Declaration
    public string FullPath { get; }
    Property Value
    Type Description
    String
    Implements
    IReader.FullPath

    Methods

    AsyncRead(EntryType, NativeArray<Byte>, UInt32, UInt32)

    Declaration
    public GenericReadOperation AsyncRead(EntryType entry, NativeArray<byte> buffer, uint offset, uint count)
    Parameters
    Type Name Description
    EntryType entry
    NativeArray<Byte> buffer
    UInt32 offset
    UInt32 count
    Returns
    Type Description
    GenericReadOperation

    AsyncRead(EntryType, UInt32, UInt32, Allocator)

    Declaration
    public GenericReadOperation AsyncRead(EntryType entry, uint offset, uint count, Allocator allocator)
    Parameters
    Type Name Description
    EntryType entry
    UInt32 offset
    UInt32 count
    Allocator allocator
    Returns
    Type Description
    GenericReadOperation

    Dispose()

    Declaration
    public void Dispose()

    GetEntryCount(EntryType)

    Declaration
    public uint GetEntryCount(EntryType entry)
    Parameters
    Type Name Description
    EntryType entry
    Returns
    Type Description
    UInt32

    GetEntryFormat(EntryType)

    Declaration
    public EntryFormat GetEntryFormat(EntryType type)
    Parameters
    Type Name Description
    EntryType type
    Returns
    Type Description
    EntryFormat

    GetSizeForEntryRange(EntryType, UInt32, UInt32)

    Declaration
    public ulong GetSizeForEntryRange(EntryType entry, uint offset, uint count)
    Parameters
    Type Name Description
    EntryType entry
    UInt32 offset
    UInt32 count
    Returns
    Type Description
    UInt64

    Open(String)

    Declaration
    public ReadError Open(string filePath)
    Parameters
    Type Name Description
    String filePath
    Returns
    Type Description
    ReadError

    Read(EntryType, NativeArray<Byte>, UInt32, UInt32)

    Declaration
    public ReadError Read(EntryType entry, NativeArray<byte> buffer, uint offset, uint count)
    Parameters
    Type Name Description
    EntryType entry
    NativeArray<Byte> buffer
    UInt32 offset
    UInt32 count
    Returns
    Type Description
    ReadError

    ReadUnsafe(EntryType, Void*, Int32, UInt32, UInt32)

    Declaration
    public ReadError ReadUnsafe(EntryType entry, void *buffer, int bufferLength, uint offset, uint count)
    Parameters
    Type Name Description
    EntryType entry
    Void* buffer
    Int32 bufferLength
    UInt32 offset
    UInt32 count
    Returns
    Type Description
    ReadError
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023