Skip to content

Commit

Permalink
Remove byteBuffer type (use array of bytes)
Browse files Browse the repository at this point in the history
It wasn't really implemented in several places anyway, but this
removes some remaining references to this type.

The byteBuffer type is superfluous since it can be represented
by an array of uint8.  It was at an earlier time also removed from the
VSS project.  Another alternative is the IFEX 'opaque' type. It was
conceived to indicate that something in reality has structure but that
it cannot (or is chosen not to) have a detailed represented in the IFEX
description.  An Opaque type is presumably also transferred as "just a
bunch of bytes" in a computing system - only the name infers there is
some additional meaning.

Signed-off-by: Gunnar Andersson <gunnar_dev@[email protected]>
  • Loading branch information
Gunnar Andersson authored and gunnar-mb committed Jun 18, 2024
1 parent 1b110af commit 08d92c5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions ifex/generators/DBus/dbus_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
"double": "d",
"string": "s",
"boolean": "b",
"byteBuffer": "ay",

# TODO: map/dict, set, variant
}
# PRELIMINARY:
Expand Down
1 change: 0 additions & 1 deletion ifex/model/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ primitive_types:
- float
- double
- string
- byteBuffer
- set
- map
- opaque
Expand Down
2 changes: 0 additions & 2 deletions ifex/templates/sds-bamm/sds-bamm-macros.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ a bamm-c:RangeConstraint ;
xsd:double
{%- elif type == 'string' -%}
xsd:string
{%- elif type == 'byteBuffer' -%}
xsd:base64Binary
{%- else -%}
{{ type }}
{%- endif -%}
Expand Down

0 comments on commit 08d92c5

Please sign in to comment.