public ItemEntity(byte[] buffer) { ItemCode = ByteSerializer.ReadString(buffer, ItemCodeOffset, ItemCodeLength); ItemName = ByteSerializer.ReadString(buffer, ItemNameOffset, ItemNameLength); SalesPrice = ByteSerializer.ReadLong(buffer, SalesPriceOffset, SalesPriceLength); }