예제 #1
0
 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);
 }
예제 #2
0
 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);
예제 #3
0
 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);