[Lldb-commits] [lldb] r126877 - /lldb/trunk/test/lldbutil.py
Johnny Chen
johnny.chen at apple.com
Wed Mar 2 12:54:22 PST 2011
Author: johnny
Date: Wed Mar 2 14:54:22 2011
New Revision: 126877
URL: http://llvm.org/viewvc/llvm-project?rev=126877&view=rev
Log:
Clarified the docstrings for int_to_bytearray() and bytearray_to_int().
Modified:
lldb/trunk/test/lldbutil.py
Modified: lldb/trunk/test/lldbutil.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbutil.py?rev=126877&r1=126876&r2=126877&view=diff
==============================================================================
--- lldb/trunk/test/lldbutil.py (original)
+++ lldb/trunk/test/lldbutil.py Wed Mar 2 14:54:22 2011
@@ -13,9 +13,8 @@
def int_to_bytearray(val, bytesize):
"""Utility function to convert an integer into a bytearray.
- It returns the bytearray in the little endian format.
- It is easy to get the big endian representation, just do
- ba.reverse() on the returned bytearray object.
+ It returns the bytearray in the little endian format. It is easy to get the
+ big endian format, just do ba.reverse() on the returned object.
"""
from struct import *
@@ -39,9 +38,8 @@
def bytearray_to_int(bytes, bytesize):
"""Utility function to convert a bytearray into an integer.
- It interprets the bytearray in the little endian format.
- It is easy to get the big endian representation, just do
- ba.reverse() on the bytearray object before passing it in.
+ It interprets the bytearray in the little endian format. For a big endian
+ bytearray, just do ba.reverse() on the object before passing it in.
"""
from struct import *
More information about the lldb-commits
mailing list