CAD97 / CAD97/cstr8

`*const u8` is used instead of `*const ffi::c_char` like in `ffi::CStr`

Open
#4 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

`from_ptr` and `as_ptr` both deal with `*const u8`, even though the equivalent methods in `core::ffi::CStr` use ~`*const i8`~ `*const ffi::c_char`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the `from_ptr` and `as_ptr` methods in the cstr8 source and compare their pointer types with the equivalent methods in `core::ffi::CStr`. Done means both methods use `*const ffi::c_char` consistently with `CStr`; check the existing test suite for affected API expectations.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend-api-design
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.