Ignore:
Timestamp:
Oct 9, 2009, 2:15:48 PM (15 years ago)
Author:
george
Message:
  • Přidáno: Některé funkce pro dekódování.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ProtocolBuffers/UMainForm.pas

    r6 r7  
    3333  Text: string;
    3434  I: Integer;
     35  NewItem: TPBItem;
    3536begin
    3637  Stream := TMemoryStreamEx.Create;
    3738  PB := TProtocolBuffer.Create;
    3839  with PB do begin
    39     BaseMessage := TPBMessage.Create;
    40     BaseMessage.Name := 'SampleMessage';
    41     BaseMessage.Tag := $aaaa;
     40    with BaseMessage do begin
     41      Name := 'SampleMessage';
     42      NewItem := TPBIntegerItem.Create;
     43      TPBIntegerItem(NewItem).Value := $5555555;
     44      Items.Add(NewItem);
     45    end;
    4246    SaveToStream(Stream);
    4347  end;
Note: See TracChangeset for help on using the changeset viewer.