Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
520b74d0
Commit
520b74d0
authored
12 years ago
by
Konstantin Osipov
Browse files
Options
Downloads
Patches
Plain Diff
Clarify box-protocol.txt, splice format.
parent
53c4edd1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/box-protocol.txt
+10
-14
10 additions, 14 deletions
doc/box-protocol.txt
with
10 additions
and
14 deletions
doc/box-protocol.txt
+
10
−
14
View file @
520b74d0
...
...
@@ -299,25 +299,21 @@ Tarantool/Box IPROTO protocol.
; It's an error to specify an argument of a type that
; differs from expected type.
;
; 'splice' operates on string field, and has 4 arguments:
; field number, offset in the field, number of bytes to remove,
; length of the string argument to inject, the string
<op_arg> ::= <field>
<op_arg> ::= <field> | <splice_op_arg>
; For simple operations <op_arg> field contains either a string
; to assign, a number to add or subtract.
; When <op_code> is splice, <field> has to carry not one argument,
; but 3: offset in the target field, number of bytes to remove,
; string argument to inject. Since <op_arg> is always a <field>,
; field data in case of splice argument contains 3 nested <field>
; objects, which store the arguments:
;
; <offset> is a non-negative integer, within the size of the
; original field. If offset is beyond the length of the
; field, it is set to the current length of the field.
; <length> is an integer, indicating the number of bytes to remove.
; If <length> ; is negative, all bytes until <length> to the
; end of the field are removed. <field> is injected in place of the
; removed string.
;
<splice_op_arg> ::= <offset><length><field>
<splice_field_data> ::= <offset><length><string>
<offset> ::= <field>
<length> ::= <field>
<string> ::= <field>
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment