ModernUO/Projects/Server/Buffers
Kamron Batman d070efeab3
fix(houses): Converts house packets (1 of 2) (#502)
- [X] Adds `ToSpan()` for SpanWriter.
- [X] Moves house files to UOContent/Multis/Houses
- [X] Adds house packets

### SpanWriter.ToSpan()
`ToSpan()` returns an `SpanOwner` struct which allows access to the buffer as a Span by calling `Span`.

Example:
```cs
public SpanOwner CreatePacket()
{
  var writer = new SpanWriter(0x400);
  // write some stuff
  return writer.ToSpan();
}
```
In this example, we are creating a packet and returning the `SpanOwner` for caching. This means in the future we can do something like this:
```cs
ns.Send(_cachedPacket.Span);
```
Where `_cachedPacket` is the `SpanOwner`

Notes:
Do not use a SpanWriter, or attempt to dispose of it after calling `ToSpan()`. Doing so will probably cause an NPE.
2021-02-13 09:18:12 -08:00
..
CircularBuffer.cs fix(core): Fixes wrong offset for CircularBuffer (#344) 2020-12-11 16:46:38 -08:00
CircularBufferReader.cs fix(core): Converts BB packets (#406) 2021-01-13 22:28:31 -08:00
CircularBufferWriter.cs fix(core): Handles a rare NPE with LoginTimer (#508) 2021-02-11 23:47:02 -08:00
SpanReader.cs fix(core): Fixes SpanReader moving position before read (#468) 2021-02-05 23:45:44 -08:00
SpanWriter.cs fix(houses): Converts house packets (1 of 2) (#502) 2021-02-13 09:18:12 -08:00
ValueStringBuilder.cs fix(core): Fixes nullables being disabled (#466) 2021-02-05 14:09:57 -08:00