本文整理汇总了C#中IValueStream类的典型用法代码示例。如果您正苦于以下问题:C# IValueStream类的具体用法?C# IValueStream怎么用?C# IValueStream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IValueStream类属于命名空间,在下文中一共展示了IValueStream类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Load
public static VTOpenAck Load(IValueStream stream)
{
stream.EnterSequence();
var remoteVTSessionIdentifier = Value<byte>.Load(stream);
stream.LeaveSequence();
return new VTOpenAck(remoteVTSessionIdentifier);
}
示例2: Load
public static WritePropertyMultipleRequest Load(IValueStream stream)
{
stream.EnterSequence();
var listOfwriteAccessSpecifications = Value<ReadOnlyArray<WriteAccessSpecification>>.Load(stream);
stream.LeaveSequence();
return new WritePropertyMultipleRequest(listOfwriteAccessSpecifications);
}
示例3: Load
public static ReadPropertyMultipleAck Load(IValueStream stream)
{
stream.EnterSequence();
var listOfReadAccessResults = Value<ReadOnlyArray<ReadAccessResult>>.Load(stream);
stream.LeaveSequence();
return new ReadPropertyMultipleAck(listOfReadAccessResults);
}
示例4: Load
public static TimeSynchronizationRequest Load(IValueStream stream)
{
stream.EnterSequence();
var time = Value<DateAndTime>.Load(stream);
stream.LeaveSequence();
return new TimeSynchronizationRequest(time);
}
示例5: Load
public static AuthenticateAck Load(IValueStream stream)
{
stream.EnterSequence();
var modifiedRandomNumber = Value<uint>.Load(stream);
stream.LeaveSequence();
return new AuthenticateAck(modifiedRandomNumber);
}
示例6: Load
public static SetpointReference Load(IValueStream stream)
{
stream.EnterSequence();
var reference = Value<Option<ObjectPropertyReference>>.Load(stream);
stream.LeaveSequence();
return new SetpointReference(reference);
}
示例7: Load
public static ActionList Load(IValueStream stream)
{
stream.EnterSequence();
var action = Value<ReadOnlyArray<ActionCommand>>.Load(stream);
stream.LeaveSequence();
return new ActionList(action);
}
示例8: Load
public static DailySchedule Load(IValueStream stream)
{
stream.EnterSequence();
var daySchedule = Value<ReadOnlyArray<TimeValue>>.Load(stream);
stream.LeaveSequence();
return new DailySchedule(daySchedule);
}
示例9: Load
public static VTCloseRequest Load(IValueStream stream)
{
stream.EnterSequence();
var listOfRemoteVTSessionIdentifiers = Value<ReadOnlyArray<byte>>.Load(stream);
stream.LeaveSequence();
return new VTCloseRequest(listOfRemoteVTSessionIdentifiers);
}
示例10: Load
public static GetEventInformationRequest Load(IValueStream stream)
{
stream.EnterSequence();
var lastReceivedObjectIdentifier = Value<Option<ObjectId>>.Load(stream);
stream.LeaveSequence();
return new GetEventInformationRequest(lastReceivedObjectIdentifier);
}
示例11: Load
public static DeleteObjectRequest Load(IValueStream stream)
{
stream.EnterSequence();
var objectIdentifier = Value<ObjectId>.Load(stream);
stream.LeaveSequence();
return new DeleteObjectRequest(objectIdentifier);
}
示例12: Load
public static NetworkAddress Load(IValueStream stream)
{
stream.EnterSequence();
var networkNumber = Value<ushort>.Load(stream);
var macAddress = Value<byte[]>.Load(stream);
stream.LeaveSequence();
return new NetworkAddress(networkNumber, macAddress);
}
示例13: Load
public static SessionKey Load(IValueStream stream)
{
stream.EnterSequence();
var key = Value<byte[]>.Load(stream);
var peerAddress = Value<NetworkAddress>.Load(stream);
stream.LeaveSequence();
return new SessionKey(key, peerAddress);
}
示例14: Load
public static RecipientProcess Load(IValueStream stream)
{
stream.EnterSequence();
var recipient = Value<Recipient>.Load(stream);
var processIdentifier = Value<uint>.Load(stream);
stream.LeaveSequence();
return new RecipientProcess(recipient, processIdentifier);
}
示例15: Load
public static AddressBinding Load(IValueStream stream)
{
stream.EnterSequence();
var deviceObjectIdentifier = Value<ObjectId>.Load(stream);
var deviceAddress = Value<NetworkAddress>.Load(stream);
stream.LeaveSequence();
return new AddressBinding(deviceObjectIdentifier, deviceAddress);
}