Search notes:

System.Runtime.InteropServices.Marshal: SystemDefaultCharSize / SystemMaxDBCSCharSize

SystemDefaultCharSize corresponds to the size (in bytes) of a System.Char on the system (2 for Unicode, 1 for ASCII systems).
SystemMaxDBCSCharSize corresponds to the maximum size of the double byte character set (DBCS) for the current OS.

PowerShell example

write-host "SystemDefaultCharSize: $([System.Runtime.InteropServices.Marshal]::SystemDefaultCharSize)"
write-host "SystemMaxDBCSCharSize: $([System.Runtime.InteropServices.Marshal]::SystemMaxDBCSCharSize)"

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1758199680, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/dot-net/namespaces-classes/System/Runtime/InteropServices/Marshal/_CharSize(39): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78