public bool TryReadGroupMemoryFrame(IBinaryReadStream stream, out GroupMemoryFrame frame, bool checkIsGroup = true, bool readSafe = true) { if (!TryGetGroup(stream, out var meta, checkIsGroup: checkIsGroup)) { frame = default; return(false); } frame = new GroupMemoryFrame(meta, stream.ReadMemory(checked ((int)meta.TotalLength), readSafe)); return(true); }
public static bool TryReadGroupMemoryFrame(this IMutagenReadStream stream, out GroupMemoryFrame frame, bool checkIsGroup = true, bool readSafe = false) => stream.MetaData.Constants.TryReadGroupMemoryFrame(stream, out frame, checkIsGroup, readSafe);
public static bool TryGetGroupMemoryFrame(this IMutagenReadStream stream, out GroupMemoryFrame header, int offset = 0, bool checkIsGroup = true, bool readSafe = false) => stream.MetaData.Constants.TryGetGroupMemoryFrame(stream, out header, offset, checkIsGroup, readSafe);