Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Question: how would i use DataReader.read_bytes()? #42

Answered by dlech
a-usr asked this question in Q&A
Discussion options

You must be logged in to vote

It is best to avoid DataReader and use Python APIs like the struct module instead. Buffer objects can be passed directly to anything in Python that uses the Python buffer protocol. So return bytearray(buffer) would probably do what you want in this case.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by a-usr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #41 on November 29, 2023 15:42.