text: public override void Write(ByteBuffer src, long position){long endPosition = position + src.Length;if (endPosition > buffer.Length){Extend(endPosition);}src.Read(buffer, (int)position, src.Length);if (endPosition > size){size = endPosition;}}