Metafora arxeion apo sistima x se y...
V13
v13 at priest.com
Fri Jun 28 22:03:01 EEST 2002
On Friday 28 June 2002 19:02, n01 wrote:
> To kathe sistima exei ta dika tou standards (p.x. FSType). Otan stelnontai
> dedomena pros ena allo sistima, ta apostalonta dedomena ti morfis einai...
> Einai diladi morfis katallilis kai amesis anagnosis apo to
> sistima-paralipti?, i to programma-paraliptis pou diaxeirizetai auta ta
> dedomena prepei na kanei protista kapoies metatropes se auta gia na einai
> prospelasima apo to sistima-paralipti?
An katalaba kala, anaferesai stin metafora enos arxeioy apo ena mixanima se
ena allo, me diaforetiko OS kai pithanos diaforetiko H/W.
Theoro oti den tithetai thema metaforas toy arxeioy kai oti mporeis na
dimioyrgiseis akribes antigrafo apo to ena mixanima sto allo. To mono
problima soy einai h anagnosi toy.
An to arxeio einai text, tote mallon prepei na koitakseis ta diafora
character sets kathos kai to thema toy CR/LF. (An skopeyeis na to parakaneis
isos prepei na koitakseis kai to thema ton 7/8 bit, alla den pisteyo oti
tithetai tetoio thema stis meres mas)
An to arxeio einai binary, tote dystixos prepei na ksereis tin akribi domi
toy giati ekei tithetai thema endianess kai einai adynato na to diabaseis an
den gnorizeis AKRIBOS tin domi toy. An tin gnorizeis, tote prepei na ksereis
oti opoy egrapses byte, tha diabaseis byte, eno opoy egrapses word (16bit) h
dword(32 bit) tha prepei na ta grafeis ola se network byte order (blepe
ntohs(), htons(), ntohl(), hotnl() ) kai na ta diabaseis etsi.. opote px:
Gia kathe 16bit timi poy grafeis tin metatrepseis se NBO me tin htons() kai
otan tin diabaseis tin pernas apo tin htons() kai tni xrisimopoieis. Etsi to
programma einai kai portable kai xoris problimata me ta endianess.. Gia
floating point kai 64bit int den nomizo na yparxei kati standard kai isos tha
prepei na ta apothikeyeis san text. Oloi oi alloi synthetoi typoi anagonte se
synola ton parapano.
> Ti papers-books tha mou proteinate na diabaso? Stin deuteri periptosi,
> iparxoun etoimoi algorithmoi metatropois ton dedomenon?
Dystixos den exo na soy proteino kati. An omos ginosoyn poio sygkekrimenos
isos na iksera kapoio paradeigma(programma) na koitakseis.
<<V13>>
p.s. Apo tin ali yparxei kai h XML (text power) :)
More information about the Linux-greek-users
mailing list