Implement bounded Notation LLSD codec
This commit is contained in:
@@ -79,22 +79,38 @@ NATIVE_TYPES = {
|
||||
}
|
||||
|
||||
NATIVE_MEMBER_BODIES = {
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.BufferCharactersEqual(System.IO.StringReader,System.Char[],System.Int32)":
|
||||
"crate::notation::buffer_characters_equal(reader, buffer, offset)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.ConsumeBytes(System.IO.Stream,System.Int32)":
|
||||
"crate::binary::consume_bytes(stream, consume_bytes)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.DeserializeLLSDBinary(System.Byte[])":
|
||||
"crate::binary::deserialize_bytes(binary_data)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.DeserializeLLSDBinary(System.IO.Stream)":
|
||||
"crate::binary::deserialize_stream(stream)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.DeserializeLLSDNotation(System.IO.StringReader)":
|
||||
"crate::notation::deserialize_reader(reader)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.DeserializeLLSDNotation(System.String)":
|
||||
"crate::notation::deserialize_string(notation_data)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.EscapeCharacter(System.String,System.Char)":
|
||||
"crate::notation::escape_character(s, c)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.FindByte(System.IO.Stream,System.Byte)":
|
||||
"crate::binary::find_byte(stream, to_find)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.FindString(System.IO.Stream,System.String)":
|
||||
"crate::binary::find_string(stream, to_find)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.GetLengthInBrackets(System.IO.StringReader)":
|
||||
"crate::notation::get_length_in_brackets(reader)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.GetStringDelimitedBy(System.IO.StringReader,System.Char)":
|
||||
"crate::notation::get_string_delimited_by(reader, delimiter)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.HostToNetworkIntBytes(System.Int32)":
|
||||
"crate::binary::host_to_network_int_bytes(int_host_end)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.NetworkToHostDouble(System.Byte[])":
|
||||
"crate::binary::network_to_host_double(binary_net_end)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.NetworkToHostInt(System.Byte[])":
|
||||
"crate::binary::network_to_host_int(binary_net_end)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.PeekAndSkipWhitespace(System.IO.StringReader)":
|
||||
"crate::notation::peek_and_skip_whitespace(reader)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.ReadAndSkipWhitespace(System.IO.StringReader)":
|
||||
"crate::notation::read_and_skip_whitespace(reader)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.SerializeLLSDBinary(LibreMetaverse.StructuredData.OSD)":
|
||||
"crate::binary::serialize(osd)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.SerializeLLSDBinary(LibreMetaverse.StructuredData.OSD,System.Boolean)":
|
||||
@@ -103,8 +119,18 @@ NATIVE_MEMBER_BODIES = {
|
||||
"crate::binary::serialize_stream(data)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.SerializeLLSDBinaryStream(LibreMetaverse.StructuredData.OSD,System.Boolean)":
|
||||
"crate::binary::serialize_stream_with_header(data, prepend_header)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.SerializeLLSDNotation(LibreMetaverse.StructuredData.OSD)":
|
||||
"crate::notation::serialize(osd)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.SerializeLLSDNotationFormatted(LibreMetaverse.StructuredData.OSD)":
|
||||
"crate::notation::serialize_formatted(osd)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.SerializeLLSDNotationStream(LibreMetaverse.StructuredData.OSD)":
|
||||
"crate::notation::serialize_stream(osd)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.SerializeLLSDNotationStreamFormatted(LibreMetaverse.StructuredData.OSD)":
|
||||
"crate::notation::serialize_stream_formatted(osd)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.SkipWhiteSpace(System.IO.Stream)":
|
||||
"crate::binary::skip_whitespace(stream)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.UnescapeCharacter(System.String,System.Char)":
|
||||
"crate::notation::unescape_character(s, c)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.Deserialize(System.Byte[])":
|
||||
"crate::dispatch::deserialize_bytes(data)",
|
||||
"M:LibreMetaverse.StructuredData.OSDParser.Deserialize(System.IO.Stream)":
|
||||
|
||||
@@ -982,6 +982,7 @@ def validate_generated_shims() -> None:
|
||||
"crate::byte_order::",
|
||||
"crate::binary::",
|
||||
"crate::dispatch::",
|
||||
"crate::notation::",
|
||||
)
|
||||
):
|
||||
raise ValueError(f"generated shim function does not use the standardized failure: {path.relative_to(ROOT)}")
|
||||
|
||||
Reference in New Issue
Block a user