Ejemplo n.º 1
0
        public static int ReserveAndWriteUtf8(IByteBuffer buf, ICharSequence seq, int start, int end, int reserveBytes)
        {
            var seqCount = seq.Count;

            if (MathUtil.IsOutOfBounds(start, end - start, seqCount))
            {
                ThrowHelper.ThrowIndexOutOfRangeException_Expected_Seq(start, seqCount, end);
            }
            return(ReserveAndWriteUtf8Seq(buf, seq, start, end, reserveBytes));
        }