This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory-site.git
The following commit(s) were added to refs/heads/main by this push:
new d7418cb03 🔄 synced local 'docs/guide/' with remote 'docs/guide/'
d7418cb03 is described below
commit d7418cb0348c8a5c1ec04dd4ae87a9b7e08b5a77
Author: chaokunyang <[email protected]>
AuthorDate: Mon Apr 20 10:45:18 2026 +0000
🔄 synced local 'docs/guide/' with remote 'docs/guide/'
---
docs/guide/cpp/custom-serializers.md | 8 ++++----
docs/guide/rust/custom-serializers.md | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/docs/guide/cpp/custom-serializers.md
b/docs/guide/cpp/custom-serializers.md
index 844153715..478b4e899 100644
--- a/docs/guide/cpp/custom-serializers.md
+++ b/docs/guide/cpp/custom-serializers.md
@@ -290,9 +290,9 @@ ctx.write_uint16(value);
// Variable-length integers (compact encoding)
ctx.write_var_uint32(value); // Unsigned varint
-ctx.write_varint32(value); // Signed zigzag varint
+ctx.write_var_int32(value); // Signed zigzag varint
ctx.write_var_uint64(value); // Unsigned varint
-ctx.write_varint64(value); // Signed zigzag varint
+ctx.write_var_int64(value); // Signed zigzag varint
// Tagged integers (for mixed-size encoding)
ctx.write_tagged_uint64(value);
@@ -318,9 +318,9 @@ int8_t i8 = ctx.read_int8(ctx.error());
// Variable-length integers
uint32_t u32 = ctx.read_var_uint32(ctx.error());
-int32_t i32 = ctx.read_varint32(ctx.error());
+int32_t i32 = ctx.read_var_int32(ctx.error());
uint64_t u64 = ctx.read_var_uint64(ctx.error());
-int64_t i64 = ctx.read_varint64(ctx.error());
+int64_t i64 = ctx.read_var_int64(ctx.error());
// Check for errors after read operations
if (ctx.has_error()) {
diff --git a/docs/guide/rust/custom-serializers.md
b/docs/guide/rust/custom-serializers.md
index a9d366687..87c552367 100644
--- a/docs/guide/rust/custom-serializers.md
+++ b/docs/guide/rust/custom-serializers.md
@@ -112,8 +112,8 @@ context.writer.write_f64(value);
context.writer.write_bool(value);
// Variable-length integers
-context.writer.write_varint32(value);
-context.writer.write_varuint32(value);
+context.writer.write_var_i32(value);
+context.writer.write_var_u32(value);
// Strings
context.writer.write_utf8_string(&string);
@@ -132,8 +132,8 @@ let value = context.reader.read_f64();
let value = context.reader.read_bool();
// Variable-length integers
-let value = context.reader.read_varint32();
-let value = context.reader.read_varuint32();
+let value = context.reader.read_var_i32();
+let value = context.reader.read_var_u32();
// Strings
let string = context.reader.read_utf8_string(len);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]