Autor Beitrag
cux
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 51



BeitragVerfasst: So 05.11.06 00:20 
wie speichere ich eine boolean variable in einem stream ab?

stream.write(bool,sizeof(bool)) oder/und stream.read(bool,sizeof(bool)) funkt nicht!
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: So 05.11.06 00:25 
Müsste es nicht SizeOf(Boolean) heißen?

AXMD
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 05.11.06 00:29 
Moin!

Mach es halt mit einer zweiten Variable vom Typ Byte, weniger als 1 Byte kannst du eh nicht schreiben. ;)

@user profile iconAXMD: Wenn "bool" vom Typ Boolean ist, ist das egal. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: So 05.11.06 00:33 
@Narses: stimmt natürlich, sorry :oops:

AXMD
cux Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 51



BeitragVerfasst: So 05.11.06 11:15 
ja mit dem Byte, da ist was dran...

aber ich dachte trotzdem dass das eigentlich funktionieren müsste.