[api] Rename encode_raw_short_string to encode_short_string

This commit is contained in:
J. Nick Koston
2026-04-03 14:01:14 -10:00
parent 2d13def0ee
commit fd68e9a827
3 changed files with 52 additions and 54 deletions
+1 -3
View File
@@ -1078,9 +1078,7 @@ class PointerToStringBufferType(PointerToBufferTypeBase):
if max_len is not None and max_len < 128 and self.force:
tag = self.calculate_tag()
if tag < 128:
return (
f"buffer.encode_raw_short_string({tag}, this->{self.field_name});"
)
return f"buffer.encode_short_string({tag}, this->{self.field_name});"
if result := self._encode_bytes_with_precomputed_tag(
f"this->{self.field_name}.c_str()",
f"this->{self.field_name}.size()",