We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting an opaque field is unnecessary complicated:
Data : RFLX.RFLX_Builtin_Types.Bytes (RFLX.RFLX_Builtin_Types.Index'First .. RFLX.RFLX_Builtin_Types.Index'First + 2**14); function Valid_Data_Length (Length : RFLX.RFLX_Builtin_Types.Length) return Boolean is (Length <= Data'Length); procedure Write_Data (Buffer : out RFLX.RFLX_Builtin_Types.Bytes) with Pre => Valid_Data_Length (Buffer'Length) is begin Buffer := Data (Data'First .. Data'First + Buffer'Length - 1); end Write_Data; procedure Set_Value is new RFLX.TLV.Message.Set_Value (Write_Data, Valid_Data_Length); begin [...] Data := (1, 2, 3, 4, others => 0); Set_Value (Context);
In simple cases it should be as simple as:
RFLX.TLV.Message.Set_Value (Context, (1, 2, 3, 4));
The text was updated successfully, but these errors were encountered:
Simplify setting of opaque fields
c545fa0
Ref. #557
Update proof session files
99bca4c
ffc83f2
5a61f81
02de12e
fe5b916
treiher
Successfully merging a pull request may close this issue.
Setting an opaque field is unnecessary complicated:
In simple cases it should be as simple as:
The text was updated successfully, but these errors were encountered: