Ejemplo n.º 1
0
 public void ParseBytes(byte[] bytes)
 {
     using (MemoryStream ms = new MemoryStream(bytes))
         using (BinaryReader br = new BinaryReader(ms, Encoding.UTF8))
         {
             this.UseGenderEnum = br.ReadBoolean();
             if (this.UseGenderEnum)
             {
                 this.Gender = (Utils.Gender)br.ReadUInt16();
             }
             else
             {
                 this.Pronoun          = Utils.ReadStr(br);
                 this.PronounGenitive  = Utils.ReadStr(br);
                 this.PronounAcc       = Utils.ReadStr(br);
                 this.PronounReflexive = Utils.ReadStr(br);
             }
         }
 }
Ejemplo n.º 2
0
 public GenderData(Utils.Gender gender)
 {
     this.UseGenderEnum = true;
     this.Gender        = gender;
 }