Example #1
0
        public T DecodeMessage <T>(MessageFlags messageFlags, Func <T> decode) where T : Message
        {
            // H5OShared.h (H5O_SHARED_DECODE)

            if (messageFlags.HasFlag(MessageFlags.Shared))
            {
                var sharedMessage = new SharedMessage(_context.Reader, _context.Superblock);
                return(this.DecodeSharedMessage <T>(sharedMessage));
            }
            else
            {
                return(decode());
            }
        }
Example #2
0
 private DatatypeMessage?ReadSharedMessage(ObjectHeader objectHeader, SharedMessage sharedMessage)
 {
     throw new NotImplementedException();
 }