MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / create_file

Method create_file

rust/src/project.rs:495–507  ·  view source on GitHub ↗

Create a file in the project `contents` - Bytes of the file that will be created `folder` - Folder to place the created file in `name` - Name to assign to the created file `description` - Description to assign to the created file

(
        &self,
        contents: &[u8],
        folder: Option<&ProjectFolder>,
        name: N,
        description: D,
    )

Source from the content-addressed store, hash-verified

493 /// * `name` - Name to assign to the created file
494 /// * `description` - Description to assign to the created file
495 pub fn create_file<N, D>(
496 &self,
497 contents: &[u8],
498 folder: Option<&ProjectFolder>,
499 name: N,
500 description: D,
501 ) -> Result<Ref<ProjectFile>, ()>
502 where
503 N: BnStrCompatible,
504 D: BnStrCompatible,
505 {
506 self.create_file_with_progress(contents, folder, name, description, NoProgressCallback)
507 }
508
509 /// Create a file in the project
510 ///

Callers 2

test_project_creationFunction · 0.45
modify_projectFunction · 0.45

Calls 1

Tested by 2

test_project_creationFunction · 0.36
modify_projectFunction · 0.36