From 414751154ea9ff8cda0a162b93b99f0342dceec4 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 5 Dec 2014 20:03:40 -0500 Subject: [PATCH] Python: document ByteOrder MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- bindings/python/bt.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bindings/python/bt.py b/bindings/python/bt.py index 55c11eb6d..ddedf0607 100644 --- a/bindings/python/bt.py +++ b/bindings/python/bt.py @@ -346,10 +346,23 @@ class CTFStringEncoding: # Based on the enum in ctf-writer/writer.h class ByteOrder: + """ + Byte orders. + """ + + #: Native byte order BYTE_ORDER_NATIVE = 0 + + #: Little-endian BYTE_ORDER_LITTLE_ENDIAN = 1 + + #: Big-endian BYTE_ORDER_BIG_ENDIAN = 2 + + #: Network byte order (big-endian) BYTE_ORDER_NETWORK = 3 + + #: Unknown byte order BYTE_ORDER_UNKNOWN = 4 # Python-specific entry -- 2.34.1