From 7003f876edf2aa4aef5e2550852cb707e9e6d57c Mon Sep 17 00:00:00 2001 From: Bryan Duxbury Date: Sun, 1 Feb 2009 06:21:13 +0000 Subject: [PATCH] THRIFT-299. doc: binary type isn't documented nor demonstrated in the tutorial The existence of the "binary" type is now documented in the relevant places. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739702 13f79535-47bb-0310-9956-ffa450edef68 --- doc/thrift.bnf | 4 ++-- doc/thrift.tex | 1 + tutorial/tutorial.thrift | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/thrift.bnf b/doc/thrift.bnf index 60e757d7..d16ec05f 100644 --- a/doc/thrift.bnf +++ b/doc/thrift.bnf @@ -48,11 +48,11 @@ of a function, or an exception. ::= STRING ::= T_BOOL | T_BYTE | T_I8 | T_I16 | T_I32 | T_I64 | T_DOUBLE - | T_STRING | T_STRUCT | T_MAP | T_SET | T_LIST + | T_STRING | T_BINARY | T_STRUCT | T_MAP | T_SET | T_LIST ::= I16 - ::= I8 | I16 | I32 | I64 | DOUBLE | STRING | + ::= I8 | I16 | I32 | I64 | DOUBLE | STRING | BINARY | | | ::= * diff --git a/doc/thrift.tex b/doc/thrift.tex index 082be625..d20b7377 100644 --- a/doc/thrift.tex +++ b/doc/thrift.tex @@ -163,6 +163,7 @@ The base types supported by Thrift are: \item \texttt{i64} A 64-bit signed integer \item \texttt{double} A 64-bit floating point number \item \texttt{string} An encoding-agnostic text or binary string +\item \texttt{binary} A byte array representation for blobs \end{itemize} Of particular note is the absence of unsigned integer types. Because these diff --git a/tutorial/tutorial.thrift b/tutorial/tutorial.thrift index bc199e42..2655bcbc 100755 --- a/tutorial/tutorial.thrift +++ b/tutorial/tutorial.thrift @@ -21,6 +21,7 @@ * i64 Signed 64-bit integer * double 64-bit floating point value * string String + * binary Blob (byte array) * map Map from one type to another * list Ordered list of one type * set Set of unique elements of one type -- 2.17.1