docs.unity3d.com
    Show / Hide Table of Contents

    Struct FileReader

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

    Properties

    FormatVersion

    Declaration
    public readonly FormatVersion FormatVersion { get; }
    Property Value
    Type Description
    FormatVersion

    FormatVersionNumeric

    Declaration
    public readonly uint FormatVersionNumeric { get; }
    Property Value
    Type Description
    UInt32

    FullPath

    Declaration
    public readonly string FullPath { get; }
    Property Value
    Type Description
    String

    HasOpenFile

    Declaration
    public readonly bool HasOpenFile { get; }
    Property Value
    Type Description
    Boolean

    Methods

    AsyncRead(EntryType, Int64, Int64, Allocator)

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

    AsyncRead(EntryType, DynamicArray<Byte>, Int64, Int64)

    Declaration
    public GenericReadOperation AsyncRead(EntryType entry, DynamicArray<byte> buffer, long offset, long count)
    Parameters
    Type Name Description
    EntryType entry
    DynamicArray<Byte> buffer
    Int64 offset
    Int64 count
    Returns
    Type Description
    GenericReadOperation

    Close()

    Declaration
    public void Close()

    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, Int64, Int64)

    Declaration
    public long GetSizeForEntryRange(EntryType entry, long offset, long count)
    Parameters
    Type Name Description
    EntryType entry
    Int64 offset
    Int64 count
    Returns
    Type Description
    Int64

    Open(String)

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

    Read(EntryType, Int64, Int64, Allocator)

    Declaration
    public GenericReadOperation Read(EntryType entry, long offset, long count, Allocator allocator)
    Parameters
    Type Name Description
    EntryType entry
    Int64 offset
    Int64 count
    Allocator allocator
    Returns
    Type Description
    GenericReadOperation

    Read(EntryType, DynamicArray<Byte>, Int64, Int64)

    Declaration
    public GenericReadOperation Read(EntryType entry, DynamicArray<byte> buffer, long offset, long count)
    Parameters
    Type Name Description
    EntryType entry
    DynamicArray<Byte> buffer
    Int64 offset
    Int64 count
    Returns
    Type Description
    GenericReadOperation

    ReadUnsafe(EntryType, Void*, Int64, Int64, Int64)

    Declaration
    public ReadError ReadUnsafe(EntryType entry, void *buffer, long bufferLength, long offset, long count)
    Parameters
    Type Name Description
    EntryType entry
    Void* buffer
    Int64 bufferLength
    Int64 offset
    Int64 count
    Returns
    Type Description
    ReadError
    Back to top
    Terms of use
    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