Skip to content

Commit

Permalink
Merge pull request #1396 from tintoy/dev
Browse files Browse the repository at this point in the history
Implement enumerator for Composite ByteString.
  • Loading branch information
Aaronontheweb committed Nov 12, 2015
2 parents 70f0f9b + aae048c commit be84ffe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/Akka/Util/ByteString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,12 @@ public override ByteIterator Iterator()
_byteStrings.Select(x => (ByteIterator.ByteArrayIterator) x.Iterator()).ToArray());
}

public override ByteString Concat(ByteString that)
public override IEnumerator<byte> GetEnumerator()
{
return _byteStrings.SelectMany(byteString => byteString).GetEnumerator();
}

public override ByteString Concat(ByteString that)
{
if (that.IsEmpty)
{
Expand Down

0 comments on commit be84ffe

Please sign in to comment.