is_memory_address: Check whether a string is a memory address

Description Usage Arguments Details Value

View source: R/functions.r

Description

Check whether an object represents a valid memory address. If the object does not exist or is not of the correct type FALSE is returned, no error is raised.

Usage

1

Arguments

x

object to check.

Details

Valid memory addresses depend on the architecture. For instance: - for Windows 32-bit systems, an 8-bit representation (since 2^32 = 16^8) - for Windows 64-bit systems, a 16-bit representation (since 2^64 = 16^16) - for Linux Debian 64-bit systems, a 12-bit representation seems to be the case... (ref: Ubuntu 18.04 LTS on Windows)

Example of valid memory addresses for Windows 64-bit systems: "<(16-digit-code)>" (e.g. "<000000000974E880>") "<0x(16-digit-code)>" (e.g. "<0x000000000974E880>") "<environment: 0x(16-digit-code)>" (e.g. "<environment: 0x000000000974E880>")

Value

boolean indicating whether the given object represents a valid memory address.


envnames documentation built on Dec. 8, 2020, 9:07 a.m.