From 948c32ca0b2b4562158f0fcc99cb7c8f06ab861e Mon Sep 17 00:00:00 2001 From: Gustav Munkby Date: Wed, 27 Mar 2024 23:28:37 +0100 Subject: [PATCH] Regenerate codecs to import RecordingSignal.REPLICATE_END There are a bunch of other changes to import as well, but integration is less clear, and this is all we need for now. --- archive/codecs/RecordingSignal.go | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/archive/codecs/RecordingSignal.go b/archive/codecs/RecordingSignal.go index 1d117ffc..947a6065 100644 --- a/archive/codecs/RecordingSignal.go +++ b/archive/codecs/RecordingSignal.go @@ -10,17 +10,18 @@ import ( type RecordingSignalEnum int32 type RecordingSignalValues struct { - START RecordingSignalEnum - STOP RecordingSignalEnum - EXTEND RecordingSignalEnum - REPLICATE RecordingSignalEnum - MERGE RecordingSignalEnum - SYNC RecordingSignalEnum - DELETE RecordingSignalEnum - NullValue RecordingSignalEnum + START RecordingSignalEnum + STOP RecordingSignalEnum + EXTEND RecordingSignalEnum + REPLICATE RecordingSignalEnum + MERGE RecordingSignalEnum + SYNC RecordingSignalEnum + DELETE RecordingSignalEnum + REPLICATE_END RecordingSignalEnum + NullValue RecordingSignalEnum } -var RecordingSignal = RecordingSignalValues{0, 1, 2, 3, 4, 5, 6, -2147483648} +var RecordingSignal = RecordingSignalValues{0, 1, 2, 3, 4, 5, 6, 7, -2147483648} func (r RecordingSignalEnum) Encode(_m *SbeGoMarshaller, _w io.Writer) error { if err := _m.WriteInt32(_w, int32(r)); err != nil { @@ -136,3 +137,15 @@ func (r *RecordingSignalEnum) DELETEInActingVersion(actingVersion uint16) bool { func (*RecordingSignalEnum) DELETEDeprecated() uint16 { return 0 } + +func (*RecordingSignalEnum) REPLICATE_ENDSinceVersion() uint16 { + return 0 +} + +func (r *RecordingSignalEnum) REPLICATE_ENDInActingVersion(actingVersion uint16) bool { + return actingVersion >= r.REPLICATE_ENDSinceVersion() +} + +func (*RecordingSignalEnum) REPLICATE_ENDDeprecated() uint16 { + return 0 +}