Changeset 7 for ProtocolBuffers/UMainForm.pas
- Timestamp:
- Oct 9, 2009, 2:15:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ProtocolBuffers/UMainForm.pas
r6 r7 33 33 Text: string; 34 34 I: Integer; 35 NewItem: TPBItem; 35 36 begin 36 37 Stream := TMemoryStreamEx.Create; 37 38 PB := TProtocolBuffer.Create; 38 39 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; 42 46 SaveToStream(Stream); 43 47 end;
Note:
See TracChangeset
for help on using the changeset viewer.