我最后在某些低级任务中使用机器人框架,因此我必须管理一些字节字符串。我需要从内置库,但我找不到使用此关键字处理小端字节订购的小字符串的方法。
我担心这些类型的操作更容易与用户定义的关键字直接在Python中处理,但是请记住,内置的关键字已经被认为是为我完成这项工作的,应该是否可以以大型和小末日格式工作?
如果有人可以告诉我是否转换为字节
关键字也可以以某种方式以Little Endian工作,或者除了支持这种格式的内置外,是否存在其他库,我将非常感谢!
I've been lastly working with Robot Framework in some low level tasks, so I have to manage some byte strings. I need to use the Convert To bytes
keyword from the BuiltIn Library, but I can't find the way to handle Little Endian byte-ordered strings using this keyword.
I'm concerned that these types of operations are way easier to be handled directly in Python with user-defined keywords, but having in mind that a Built-In keyword is already thought to do this work for me, shouldn't it be able to work both in Big and Little Endian formats?
If someone could tell me if the Convert To Bytes
keyword can also work in Little Endian in some way, or if there exist any other library apart from the BuiltIn supporting this format, I'll really appreciate that!
发布评论
评论(1)
您可以使用评估关键字borm indendin库。这是我从此。另外,您可以修改它以适合您的输入数据类型。
You can use the Evaluate keyword form builtin library. Here is a solution i cooked up from this answer. Alternatively you can modify this to fit your input data type.