add example demonstrating custom Transform API

Open
#7,640 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

The issue names no file, test, or entry point. First locate existing examples for the custom Transform API and the implementation of Copy as C Array; add a corresponding Python-list example, then verify that the displayed values and formatting match the requested output.

Written by the indexing model from the issue text.

Description

Effort: Trivial Impact: Low

I want to right click and copy as python list like copy as C array. For example,

00404080  uint32_t check[0x1e] = 
00404080  {
00404080      [0x00] =  0x244b28be
00404084      [0x01] =  0x0af77805
00404088      [0x02] =  0x110dfc17
0040408c      [0x03] =  0x07afc3a1
00404090      [0x04] =  0x6afec533
00404094      [0x05] =  0x4ed659a2
00404098      [0x06] =  0x33c5d4b0
0040409c      [0x07] =  0x286582b8
004040a0      [0x08] =  0x43383720
004040a4      [0x09] =  0x055a14fc
004040a8      [0x0a] =  0x19195f9f
004040ac      [0x0b] =  0x43383720
004040b0      [0x0c] =  0x19195f9f
004040b4      [0x0d] =  0x747c9c5e
004040b8      [0x0e] =  0x0f3da237
004040bc      [0x0f] =  0x615ab299
004040c0      [0x10] =  0x6afec533
004040c4      [0x11] =  0x43383720
004040c8      [0x12] =  0x0f3da237
004040cc      [0x13] =  0x6afec533
004040d0      [0x14] =  0x615ab299
004040d4      [0x15] =  0x286582b8
004040d8      [0x16] =  0x055a14fc
004040dc      [0x17] =  0x3ae44994
004040e0      [0x18] =  0x06d7dfe9
004040e4      [0x19] =  0x4ed659a2
004040e8      [0x1a] =  0x0ccd4acd
004040ec      [0x1b] =  0x57d8ed64
004040f0      [0x1c] =  0x615ab299
004040f4      [0x1d] =  0x22e9bc2a
004040f8  }

can be copied as

data = [
    0x244b28be, 0x0af77805, 0x110dfc17, 0x07afc3a1,
    0x6afec533, 0x4ed659a2, 0x33c5d4b0, 0x286582b8,
    0x43383720, 0x055a14fc, 0x19195f9f, 0x43383720,
    0x19195f9f, 0x747c9c5e, 0x0f3da237, 0x615ab299,
    0x6afec533, 0x43383720, 0x0f3da237, 0x6afec533,
    0x615ab299, 0x286582b8, 0x055a14fc, 0x3ae44994,
    0x06d7dfe9, 0x4ed659a2, 0x0ccd4acd, 0x57d8ed64,
    0x615ab299, 0x22e9bc2a
]
Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Vector35/binaryninja-api

All issues in Vector35/binaryninja-api

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.