Skip to content

Commit

Permalink
Updated documentation for Serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
abledbody committed Oct 25, 2023
1 parent dc64d1e commit af9f079
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Assets/QuickBin/Serializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ namespace QuickBin {
public sealed partial class Serializer {
readonly List<byte> bytes;

/// <summary>
/// The number of bytes in the Serializer.
/// </summary>
public int Length => bytes.Count;

/// <summary>
/// Generates a Serializer, generating an empty list with a capacity of 0.
/// Generates a Serializer, initializing an empty list with a capacity of 0.
/// </summary>
public Serializer() => bytes = new List<byte>();
/// <summary>
/// Generates a Serializer, generating an empty list with the specified capacity.
/// Generates a Serializer, initializing an empty list with the specified capacity.
/// </summary>
/// <param name="capacity">The capacity of the list. See documentation for System.Collections.Generic.List<T>(int capacity) for details.</param>
public Serializer(int capacity) => bytes = new List<byte>(capacity);
Expand Down

0 comments on commit af9f079

Please sign in to comment.