public ATTREF ReadATTREF(Stream s) { if (s == null || s.BytesRemaining() < 5) { return(null); } return(new ATTREF { ObjectType = _identReader.ReadIDENT(s), Name = _obnameReader.ReadOBNAME(s), Label = _identReader.ReadIDENT(s) }); }
public ComponentBase ReadComponent(Stream s, ComponentDescriptor descriptor, AttributeComponent template = null) { var setComponent = new SetComponent { Descriptor = descriptor }; if (descriptor.DoesSetHaveType) { setComponent.Type = _identReader.ReadIDENT(s); } if (descriptor.DoesSetHaveName) { setComponent.Name = _identReader.ReadIDENT(s); } return(setComponent); }
public OBNAME ReadOBNAME(Stream s) { if (s == null || s.BytesRemaining() < 3) { return(null); } return(new OBNAME { Origin = _uvariReader.ReadUVARI(s), CopyNumber = _ushortReader.ReadUSHORT(s), Identifier = _identReader.ReadIDENT(s) }); }