View Issue Details

IDProjectCategoryView StatusLast Update
0000161LDMudEfunspublic2020-01-09 00:22
ReporterlarsAssigned ToGnomi  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Summary0000161: read_bytes(), write_bytes() shloud also accept int*
DescriptionShort: read_bytes()/write_bytes() should handle 0x0 as well
Date: 981208
Type: Feature
State: Unclassified
From: coogan

read_bytes()/write_bytes() should use int* instead of/in
addition to strings so that they can handle 0x0 bytes
as well.
TagsNo tags attached.
External Data (URL)

Activities

lars

2004-11-26 21:03

reporter   ~0000214

...in order to be able to read and write \0 bytes? Right, I forgot to
list this point. The tricky part is read_bytes(): if you want it to
return embedded 0-bytes, it must return an int*. So this means either a
special parameter combination to tell read_bytes() to switch into binary
mode, or the return type of read_bytes() is permanently changed from
string to int*. Personally, I'd prefer the latter solution, even though
it requires a simul-efun to stay compatible with existing mudlibs.

Gnomi

2020-01-09 00:22

manager   ~0002496

Since LDMud 3.3 strings can have \0 in them without any problems.
With LDMud 3.6 both efuns work on byte sequences which is even less problematic.

Issue History

Date Modified Username Field Change
2004-11-26 19:46 lars New Issue
2004-11-26 21:03 lars Note Added: 0000214
2020-01-09 00:22 Gnomi Assigned To => Gnomi
2020-01-09 00:22 Gnomi Status new => closed
2020-01-09 00:22 Gnomi Resolution open => fixed
2020-01-09 00:22 Gnomi Note Added: 0002496