mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-28 07:47:02 -05:00
includes: Fix various spelling errors (#270)
docs: fix some spelling errors Related issue: https://github.com/WerWolv/ImHex/issues/1139
This commit is contained in:
@@ -56,17 +56,17 @@ namespace auto std::core {
|
||||
|
||||
|
||||
/**
|
||||
Sets the current default endianess.
|
||||
Any patterns created following this attribute will be created using the set endianess.
|
||||
@param endian The new default endianess
|
||||
Sets the current default endianness.
|
||||
Any patterns created following this attribute will be created using the set endianness.
|
||||
@param endian The new default endianness
|
||||
*/
|
||||
fn set_endian(std::mem::Endian endian) {
|
||||
builtin::std::core::set_endian(u32(endian));
|
||||
};
|
||||
|
||||
/**
|
||||
Gets the current default endianess.
|
||||
@return The currently set default endianess
|
||||
Gets the current default endianness.
|
||||
@return The currently set default endianness
|
||||
*/
|
||||
fn get_endian() {
|
||||
return builtin::std::core::get_endian();
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace auto std::mem {
|
||||
using Section = u128;
|
||||
|
||||
/**
|
||||
The Endianess of a value
|
||||
The endianness of a value
|
||||
*/
|
||||
enum Endian : u8 {
|
||||
Native = 0,
|
||||
@@ -126,7 +126,7 @@ namespace auto std::mem {
|
||||
Reads a unsigned value from the memory
|
||||
@param address The address to read from
|
||||
@param size The size of the value to read
|
||||
@param [endian] The endianess of the value to read. Defaults to native
|
||||
@param [endian] The endianness of the value to read. Defaults to native
|
||||
@return The value read
|
||||
*/
|
||||
fn read_unsigned(u128 address, u8 size, Endian endian = Endian::Native) {
|
||||
@@ -137,7 +137,7 @@ namespace auto std::mem {
|
||||
Reads a signed value from the memory
|
||||
@param address The address to read from
|
||||
@param size The size of the value to read
|
||||
@param [endian] The endianess of the value to read. Defaults to native
|
||||
@param [endian] The endianness of the value to read. Defaults to native
|
||||
@return The value read
|
||||
*/
|
||||
fn read_signed(u128 address, u8 size, Endian endian = Endian::Native) {
|
||||
|
||||
@@ -4,13 +4,13 @@ import std.io;
|
||||
import std.mem;
|
||||
|
||||
/*!
|
||||
Libray to interact with strings.
|
||||
Library to interact with strings.
|
||||
*/
|
||||
|
||||
namespace auto std::string {
|
||||
|
||||
/**
|
||||
Base type for sized strings. Represents a string with its size preceeding it.
|
||||
Base type for sized strings. Represents a string with its size preceding it.
|
||||
@tparam SizeType The type of the size field.
|
||||
@tparam DataType The type of the characters.
|
||||
*/
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace auto std {
|
||||
};
|
||||
|
||||
/**
|
||||
Throws an error notifying the developer that the current codepath is not implemented currently.
|
||||
Throws an error notifying the developer that the current code path is not implemented currently.
|
||||
*/
|
||||
fn unimplemented() {
|
||||
std::error("Unimplemented code path reached!");
|
||||
|
||||
Reference in New Issue
Block a user