Example #1
0
        public OpaquePropertyDescription(H5BinaryReader reader, byte tagByteLength) : base(reader)
        {
            this.Tag = H5Utils
                       .ReadFixedLengthString(reader, tagByteLength)
                       .TrimEnd('\0');

#warning How to avoid the appended '\0'? Is this caused by C# string passed to HDF5 lib?
        }
        public SoftLinkInfo(H5BinaryReader reader) : base(reader)
        {
            // value length
            this.ValueLength = reader.ReadUInt16();

            // value
            this.Value = H5Utils.ReadFixedLengthString(reader, this.ValueLength);
        }
Example #3
0
        public OldObjectModificationTimeMessage(H5BinaryReader reader) : base(reader)
        {
            // date / time
            this.Year       = H5Utils.ReadFixedLengthString(reader, 4);
            this.Month      = H5Utils.ReadFixedLengthString(reader, 2);
            this.DayOfMonth = H5Utils.ReadFixedLengthString(reader, 2);
            this.Hour       = H5Utils.ReadFixedLengthString(reader, 2);
            this.Minute     = H5Utils.ReadFixedLengthString(reader, 2);
            this.Second     = H5Utils.ReadFixedLengthString(reader, 2);

            // reserved
            reader.ReadBytes(2);
        }