From 9f5b69e8def226f1d1ce9262477d5bbd1cbc1fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?= Date: Mon, 17 Oct 2016 15:07:55 +0200 Subject: erl_interface: Refactor documentation --- lib/erl_interface/doc/src/erl_marshal.xml | 35 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 18 deletions(-) (limited to 'lib/erl_interface/doc/src/erl_marshal.xml') diff --git a/lib/erl_interface/doc/src/erl_marshal.xml b/lib/erl_interface/doc/src/erl_marshal.xml index 7c56089016..c70bdb53e1 100644 --- a/lib/erl_interface/doc/src/erl_marshal.xml +++ b/lib/erl_interface/doc/src/erl_marshal.xml @@ -11,7 +11,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software @@ -19,7 +19,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + erl_marshal @@ -30,7 +30,7 @@ Torbjörn Törnkvist 980703 A - erl_marshal.sgml + erl_marshal.xml erl_marshal Encoding and Decoding of Erlang terms @@ -42,7 +42,7 @@ interl_compare_ext(bufp1, bufp2) - Compares encoded byte sequences + Compares encoded byte sequences. unsigned char *bufp1,*bufp2; @@ -56,14 +56,14 @@ term term2.

The function returns 0 if the terms are equal, -1 if term1 - is less than term2, or 1 if term2 is less than term1. + is less than term2, or 1 if term2 is less than term1.

ETERM *erl_decode(bufp) ETERM *erl_decode_buf(bufpp) - Converts a term from Erlang external format + Converts a term from Erlang external format. unsigned char *bufp; unsigned char **bufpp; @@ -79,7 +79,7 @@

is the address of a buffer pointer. The buffer contains one or more consecutively encoded Erlang terms. - Following a successful call to , + Following a successful call to , will be updated so that it points to the next encoded term.

@@ -96,14 +96,14 @@ interl_encode(term, bufp) interl_encode_buf(term, bufpp) - Converts a term into Erlang external format + Converts a term into Erlang external format. ETERM *term; unsigned char *bufp; unsigned char **bufpp; -

and encode +

and encode Erlang terms into external format for storage or transmission. provides a simple mechanism for encoding several terms consecutively in the same @@ -116,13 +116,13 @@

bufpp is a pointer to a pointer to a buffer containing one or more consecutively encoded Erlang terms. - Following a successful call to , + Following a successful call to , bufpp will be updated so that it points to the position for the next encoded term.

These functions returns the number of bytes written to buffer - if successful, otherwise returns 0. + if successful, otherwise returns 0.

Note that no bounds checking is done on the buffer. It is the caller's responsibility to make sure that the buffer is @@ -165,14 +165,14 @@ is an atom.

The total space required will be the result calculated - from the information above, plus 1 additional byte for a + from the information above, plus 1 additional byte for a version identifier.

interl_ext_size(bufp) - Counts elements in encoded term + Counts elements in encoded term. unsigned char *bufp; @@ -183,7 +183,7 @@ unsigned charerl_ext_type(bufp) - Determines type of an encoded byte sequence + Determines type of an encoded byte sequence. unsigned char *bufp; @@ -230,7 +230,7 @@ unsigned char *erl_peek_ext(bufp, pos) - Steps over encoded term + Steps over encoded term. unsigned char *bufp; int pos; @@ -244,7 +244,7 @@ more encoded Erlang terms.

indicates how many terms to step over in the - buffer. + buffer.

The function returns a pointer to a sub-term that can be used in a subsequent call to in order to retrieve @@ -255,7 +255,7 @@ interl_term_len(t) - Determines encoded size of term + Determines encoded size of term. ETERM *t; @@ -270,4 +270,3 @@ - -- cgit v1.2.3