Here are the examples of the csharp api class Secs4Net.Item.EncodeTo(System.Collections.Generic.List) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: secs4net
Source File: Item.cs
View license
internal uint EncodeTo(List<ArraySegment<byte>> buffer)
            var bytes = _rawData.Value;
            uint length = unchecked((uint)bytes.Length);
            buffer.Add(new ArraySegment<byte>(bytes));
            if (Format == SecsFormat.List)
                foreach (var subItem in Items)
                    length += subItem.EncodeTo(buffer);
            return length;