mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:42:27 +00:00
docs(dxf): describe configurable tag limit
This commit is contained in:
1 parent
a5ac3aa05c
commit
12656b3d0f
1 file changed
+3
-2
@@ -195,8 +195,9 @@ pub use codepage::decode_code_page;
|
||||
/// # Errors
|
||||
///
|
||||
/// Returns an error for empty input, an invalid group code, an incomplete group-code/value pair,
|
||||
/// truncated binary data, or more than [`MAX_TAGS`] group codes. For ASCII input, invalid numeric
|
||||
/// text becomes `0.0` for real values or `0` for integer values, and an EOF tag is not required.
|
||||
/// truncated binary data, or more group codes than the limit returned by [`max_tags()`], which is
|
||||
/// [`MAX_TAGS`] by default. For ASCII input, invalid numeric text becomes `0.0` for real values or
|
||||
/// `0` for integer values, and an EOF tag is not required.
|
||||
pub fn parse(bytes: &[u8]) -> Result<Vec<Tag>> {
|
||||
parse_with_limit(bytes, max_tags())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user